Class: Skyscanner::RouteMeta

Inherits:
Object
  • Object
show all
Defined in:
lib/movlog/routes.rb

Overview

Query parameters

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ RouteMeta

Returns a new instance of RouteMeta.



72
73
74
75
76
# File 'lib/movlog/routes.rb', line 72

def initialize(data)
  load_env_data(data['market'], data['currency'], data['locale'])
  load_place(data['origin'], data['destination'])
  load_date(data['outbound'], data['inbound'])
end

Instance Attribute Details

#currencyObject (readonly)

Returns the value of attribute currency.



68
69
70
# File 'lib/movlog/routes.rb', line 68

def currency
  @currency
end

#destinationObject (readonly)

Returns the value of attribute destination.



69
70
71
# File 'lib/movlog/routes.rb', line 69

def destination
  @destination
end

#inboundObject (readonly)

Returns the value of attribute inbound.



70
71
72
# File 'lib/movlog/routes.rb', line 70

def inbound
  @inbound
end

#localeObject (readonly)

Returns the value of attribute locale.



68
69
70
# File 'lib/movlog/routes.rb', line 68

def locale
  @locale
end

#marketObject (readonly)

Returns the value of attribute market.



68
69
70
# File 'lib/movlog/routes.rb', line 68

def market
  @market
end

#originObject (readonly)

Returns the value of attribute origin.



69
70
71
# File 'lib/movlog/routes.rb', line 69

def origin
  @origin
end

#outboundObject (readonly)

Returns the value of attribute outbound.



70
71
72
# File 'lib/movlog/routes.rb', line 70

def outbound
  @outbound
end