amadeus4dev/amadeus-node

View on GitHub
src/amadeus/namespaces/travel/predictions.js

Summary

Maintainability
A
1 hr
Test Coverage
import TripPurpose from './predictions/trip_purpose';
import FlightDelay from './predictions/flight_delay';

/**
 * A namespaced client for the
 * `/v1/travel/predictions/trip-purpose` endpoints
 *
 * Access via the {@link Amadeus} object
 *
 * ```js
 * let amadeus = new Amadeus();
 * amadeus.travel.predictions;
 * ```
 *
 * @param {Client} client
 * @property {TripPurpose} tripPurpose
 * @property {FlightDelay} flightDelay
 */
class Predictions {
  constructor(client) {
    this.client = client;
    this.tripPurpose = new TripPurpose(client);
    this.flightDelay = new FlightDelay(client);
  }
}

export default Predictions;