class Skyscanner::Place

Place info

Attributes

city_name[R]
country_name[R]
name[R]
type[R]

Public Class Methods

find(data) click to toggle source
# File lib/movlog/route.rb, line 62
def self.find(data)
  new(data)
end
new(data) click to toggle source
# File lib/movlog/route.rb, line 55
def initialize(data)
  @name = data['Name']
  @city_name = data['CityName']
  @country_name = data['CountryName']
  @type = data['Type']
end

Public Instance Methods

to_hash() click to toggle source
# File lib/movlog/route.rb, line 66
def to_hash
  { name: @name, city_name: @city_name, country_name: @country_name,
    type: @type }
end