amadeus4dev/amadeus-node

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

Summary

Maintainability
A
1 hr
Test Coverage
import Analytics from './travel/analytics';
import Predictions from './travel/predictions';

/**
 * A namespaced client for the
 * `/v1/travel` & `/v2/travel` & `/v3/travel` endpoints
 *
 * Access via the {@link Amadeus} object
 *
 * ```js
 * let amadeus = new Amadeus();
 * amadeus.travel;
 * ```
 *
 * @param {Client} client
 * @property {Analytics} analytics
 * @property {Predictions} predictions
 * @protected
 */
class Travel {
  constructor(client) {
    this.client    = client;
    this.analytics = new Analytics(client);
    this.predictions = new Predictions(client);
  }
}

export default Travel;