Class: SacsRuby::API::LowFareHistory

Inherits:
Base
  • Object
show all
Defined in:
lib/sacs_ruby/api/low_fare_history.rb

Overview

The Low Fare History API returns each day of the past two weeks lowest published fares for a given city/date pair.

Instance Attribute Summary

Attributes inherited from Base

#opts, #results, #token, #url

Instance Method Summary collapse

Methods inherited from Base

get, #get, #initialize, #valid?

Constructor Details

This class inherits a constructor from SacsRuby::Base

Instance Method Details

#endpoint_urlObject



12
13
14
# File 'lib/sacs_ruby/api/low_fare_history.rb', line 12

def endpoint_url
  '/v1/historical/shop/flights/fares'
end

#required_varsObject



8
9
10
# File 'lib/sacs_ruby/api/low_fare_history.rb', line 8

def required_vars
  %i(origin destination departuredate returndate)
end