Method: Unit::Types::Address#initialize

Defined in:
lib/unit/types/address.rb

#initialize(street, city, state, postal_code, country, street2 = nil) ⇒ Address

Returns a new instance of Address.

Parameters:

  • street (String)
  • city (String)
  • state (String)
  • postal_code (String)
  • country (String)
  • optional

    street2 [String]



14
15
16
17
18
19
20
21
# File 'lib/unit/types/address.rb', line 14

def initialize(street, city, state, postal_code, country, street2 = nil)
  @street = street
  @street2 = street2
  @city = city
  @state = state
  @postal_code = postal_code
  @country = country
end