Class: AircraftTypeRequest
- Inherits:
-
Object
- Object
- AircraftTypeRequest
- Defined in:
- lib/FlightXML2REST.rb
Overview
AircraftType
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type = nil) ⇒ AircraftTypeRequest
constructor
A new instance of AircraftTypeRequest.
- #post ⇒ Object
Constructor Details
#initialize(type = nil) ⇒ AircraftTypeRequest
Returns a new instance of AircraftTypeRequest.
4 5 6 |
# File 'lib/FlightXML2REST.rb', line 4 def initialize(type = nil) @type = type end |
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/FlightXML2REST.rb', line 3 def type @type end |
Instance Method Details
#post ⇒ Object
7 8 9 |
# File 'lib/FlightXML2REST.rb', line 7 def post "type=#@type" end |