Method: Xpost::Address#initialize
- Defined in:
- lib/xpost/address.rb
#initialize(options = {}) ⇒ Address
Returns a new instance of Address.
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/xpost/address.rb', line 17 def initialize( = {}) # (?) Mr., Mrs., Ms., etc. @title = [:title] @name = [:name] @email = [:email] @phone_number = [:phone_number] @mobile_number = [:mobile_number] @fax_number = [:fax_number] @company = [:company] # Address Line 1 @line_1 = [:line_1] # Address Line 1 @line_2 = [:line_2] # City @city = [:city] # District (NCR's Four Districts) (Optional) @district = [:district] # State / Province @state = [:state] # Postal Code / ZIP Code @postal_code = [:postal_code] # Country @country = [:country] @remarks = [:remarks] end |