Class: Cadooz::Mutable::Address

Inherits:
Object
  • Object
show all
Includes:
Mixins
Defined in:
lib/cadooz/models/mutable/address.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Mixins

#cadooz_class, #default_value_for_nil, #instance_variables_empty?, #serialize

Constructor Details

#initialize(args = {}) ⇒ Address

Returns a new instance of Address.



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/cadooz/models/mutable/address.rb', line 8

def initialize(args={})
  @company = args[:company]
  @country = args[:country]
  @department = args[:department]
  @email = args[:email]
  @firstname = args[:firstname]
  @lastname = args[:lastname]
  @phone = args[:phone]
  @salutation = args[:salutation]
  @state = args[:state]
  @street = args[:street]
  @street_addon = args[:street_addon]
  @zipcode = args[:zipcode]

  default_value_for_nil
end

Instance Attribute Details

#cityObject

Returns the value of attribute city.



4
5
6
# File 'lib/cadooz/models/mutable/address.rb', line 4

def city
  @city
end

#companyObject

Returns the value of attribute company.



4
5
6
# File 'lib/cadooz/models/mutable/address.rb', line 4

def company
  @company
end

#countryObject

Returns the value of attribute country.



4
5
6
# File 'lib/cadooz/models/mutable/address.rb', line 4

def country
  @country
end

#departmentObject

Returns the value of attribute department.



4
5
6
# File 'lib/cadooz/models/mutable/address.rb', line 4

def department
  @department
end

#emailObject

Returns the value of attribute email.



4
5
6
# File 'lib/cadooz/models/mutable/address.rb', line 4

def email
  @email
end

#firstnameObject

Returns the value of attribute firstname.



4
5
6
# File 'lib/cadooz/models/mutable/address.rb', line 4

def firstname
  @firstname
end

#lastnameObject

Returns the value of attribute lastname.



4
5
6
# File 'lib/cadooz/models/mutable/address.rb', line 4

def lastname
  @lastname
end

#phoneObject

Returns the value of attribute phone.



4
5
6
# File 'lib/cadooz/models/mutable/address.rb', line 4

def phone
  @phone
end

#salutationObject

Returns the value of attribute salutation.



4
5
6
# File 'lib/cadooz/models/mutable/address.rb', line 4

def salutation
  @salutation
end

#stateObject

Returns the value of attribute state.



4
5
6
# File 'lib/cadooz/models/mutable/address.rb', line 4

def state
  @state
end

#streetObject

Returns the value of attribute street.



4
5
6
# File 'lib/cadooz/models/mutable/address.rb', line 4

def street
  @street
end

#street_addonObject

Returns the value of attribute street_addon.



4
5
6
# File 'lib/cadooz/models/mutable/address.rb', line 4

def street_addon
  @street_addon
end

#zipcodeObject

Returns the value of attribute zipcode.



4
5
6
# File 'lib/cadooz/models/mutable/address.rb', line 4

def zipcode
  @zipcode
end