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.



4
5
6
# File 'lib/FlightXML2REST.rb', line 4

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

Instance Attribute Details

#typeObject

Returns the value of attribute type.



3
4
5
# File 'lib/FlightXML2REST.rb', line 3

def type
  @type
end

Instance Method Details

#postObject



7
8
9
# File 'lib/FlightXML2REST.rb', line 7

def post
  "type=#@type"
end