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(options = {})
  # (?) Mr., Mrs., Ms., etc.
  @title          = options[:title]
  @name           = options[:name]
  @email          = options[:email]
  @phone_number   = options[:phone_number]
  @mobile_number  = options[:mobile_number]
  @fax_number     = options[:fax_number]
  @company        = options[:company]

  # Address Line 1
  @line_1         = options[:line_1]
  # Address Line 1
  @line_2         = options[:line_2]
  # City
  @city           = options[:city]
  # District (NCR's Four Districts) (Optional)
  @district       = options[:district]
  # State / Province
  @state          = options[:state]
  # Postal Code / ZIP Code
  @postal_code    = options[:postal_code]
  # Country
  @country        = options[:country]

  @remarks        = options[:remarks]
end