Class: ZipcodeInfoRequest

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

Overview

ZipcodeInfo

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(zipcode = nil) ⇒ ZipcodeInfoRequest

Returns a new instance of ZipcodeInfoRequest.



2611
2612
2613
# File 'lib/FlightXML2REST.rb', line 2611

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

Instance Attribute Details

#zipcodeObject

Returns the value of attribute zipcode.



2610
2611
2612
# File 'lib/FlightXML2REST.rb', line 2610

def zipcode
  @zipcode
end

Instance Method Details

#postObject



2614
2615
2616
# File 'lib/FlightXML2REST.rb', line 2614

def post
  "zipcode=#@zipcode"
end