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.



222
223
224
225
226
227
228
229
230
# File 'lib/FlightXML2REST.rb', line 222

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.



221
222
223
# File 'lib/FlightXML2REST.rb', line 221

def callsign
  @callsign
end

#countryObject

Returns the value of attribute country.



221
222
223
# File 'lib/FlightXML2REST.rb', line 221

def country
  @country
end

#locationObject

Returns the value of attribute location.



221
222
223
# File 'lib/FlightXML2REST.rb', line 221

def location
  @location
end

#nameObject

Returns the value of attribute name.



221
222
223
# File 'lib/FlightXML2REST.rb', line 221

def name
  @name
end

#phoneObject

Returns the value of attribute phone.



221
222
223
# File 'lib/FlightXML2REST.rb', line 221

def phone
  @phone
end

#shortnameObject

Returns the value of attribute shortname.



221
222
223
# File 'lib/FlightXML2REST.rb', line 221

def shortname
  @shortname
end

#urlObject

Returns the value of attribute url.



221
222
223
# File 'lib/FlightXML2REST.rb', line 221

def url
  @url
end