Class: AircraftTypeRequest

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

Overview

AircraftType

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil) ⇒ AircraftTypeRequest

Returns a new instance of AircraftTypeRequest.



12
13
14
# File 'lib/FlightXML2REST.rb', line 12

def initialize(type = nil)
  @type = type
end

Instance Attribute Details

#typeObject

Returns the value of attribute type.



11
12
13
# File 'lib/FlightXML2REST.rb', line 11

def type
  @type
end

Instance Method Details

#postObject



15
16
17
# File 'lib/FlightXML2REST.rb', line 15

def post
  "type=#@type"
end