Class: AirlineInfoStruct

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(callsign = nil, country = nil, location = nil, name = nil, phone = nil, shortname = nil, url = nil) ⇒ AirlineInfoStruct

Returns a new instance of AirlineInfoStruct.



250
251
252
253
254
255
256
257
258
# File 'lib/FlightXML2REST.rb', line 250

def initialize (callsign = nil, country = nil, location = nil, name = nil, phone = nil, shortname = nil, url = nil)
  @callsign = callsign
  @country = country
  @location = location
  @name = name
  @phone = phone
  @shortname = shortname
  @url = url
end

Instance Attribute Details

#callsignObject

Returns the value of attribute callsign.



249
250
251
# File 'lib/FlightXML2REST.rb', line 249

def callsign
  @callsign
end

#countryObject

Returns the value of attribute country.



249
250
251
# File 'lib/FlightXML2REST.rb', line 249

def country
  @country
end

#locationObject

Returns the value of attribute location.



249
250
251
# File 'lib/FlightXML2REST.rb', line 249

def location
  @location
end

#nameObject

Returns the value of attribute name.



249
250
251
# File 'lib/FlightXML2REST.rb', line 249

def name
  @name
end

#phoneObject

Returns the value of attribute phone.



249
250
251
# File 'lib/FlightXML2REST.rb', line 249

def phone
  @phone
end

#shortnameObject

Returns the value of attribute shortname.



249
250
251
# File 'lib/FlightXML2REST.rb', line 249

def shortname
  @shortname
end

#urlObject

Returns the value of attribute url.



249
250
251
# File 'lib/FlightXML2REST.rb', line 249

def url
  @url
end