Class: SabreDevStudio::Flight::Shop::StreamlinedDestinations

Inherits:
Object
  • Object
show all
Defined in:
lib/sabre_dev_studio-flight/shop/streamlined_destinations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bulky_destinations) ⇒ StreamlinedDestinations

Returns a new instance of StreamlinedDestinations.



20
21
22
23
# File 'lib/sabre_dev_studio-flight/shop/streamlined_destinations.rb', line 20

def initialize(bulky_destinations)
  @destinations = Hash.new
  streamline(bulky_destinations['FareInfo'])
end

Instance Attribute Details

#destinationsObject (readonly)

Returns the value of attribute destinations.



18
19
20
# File 'lib/sabre_dev_studio-flight/shop/streamlined_destinations.rb', line 18

def destinations
  @destinations
end