Class: Cadooz::Mutable::Address
- Inherits:
-
Object
- Object
- Cadooz::Mutable::Address
- Includes:
- Mixins
- Defined in:
- lib/cadooz/models/mutable/address.rb
Instance Attribute Summary collapse
-
#city ⇒ Object
Returns the value of attribute city.
-
#company ⇒ Object
Returns the value of attribute company.
-
#country ⇒ Object
Returns the value of attribute country.
-
#department ⇒ Object
Returns the value of attribute department.
-
#email ⇒ Object
Returns the value of attribute email.
-
#firstname ⇒ Object
Returns the value of attribute firstname.
-
#lastname ⇒ Object
Returns the value of attribute lastname.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#salutation ⇒ Object
Returns the value of attribute salutation.
-
#state ⇒ Object
Returns the value of attribute state.
-
#street ⇒ Object
Returns the value of attribute street.
-
#street_addon ⇒ Object
Returns the value of attribute street_addon.
-
#zipcode ⇒ Object
Returns the value of attribute zipcode.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Address
constructor
A new instance of Address.
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
#city ⇒ Object
Returns the value of attribute city.
4 5 6 |
# File 'lib/cadooz/models/mutable/address.rb', line 4 def city @city end |
#company ⇒ Object
Returns the value of attribute company.
4 5 6 |
# File 'lib/cadooz/models/mutable/address.rb', line 4 def company @company end |
#country ⇒ Object
Returns the value of attribute country.
4 5 6 |
# File 'lib/cadooz/models/mutable/address.rb', line 4 def country @country end |
#department ⇒ Object
Returns the value of attribute department.
4 5 6 |
# File 'lib/cadooz/models/mutable/address.rb', line 4 def department @department end |
#email ⇒ Object
Returns the value of attribute email.
4 5 6 |
# File 'lib/cadooz/models/mutable/address.rb', line 4 def email @email end |
#firstname ⇒ Object
Returns the value of attribute firstname.
4 5 6 |
# File 'lib/cadooz/models/mutable/address.rb', line 4 def firstname @firstname end |
#lastname ⇒ Object
Returns the value of attribute lastname.
4 5 6 |
# File 'lib/cadooz/models/mutable/address.rb', line 4 def lastname @lastname end |
#phone ⇒ Object
Returns the value of attribute phone.
4 5 6 |
# File 'lib/cadooz/models/mutable/address.rb', line 4 def phone @phone end |
#salutation ⇒ Object
Returns the value of attribute salutation.
4 5 6 |
# File 'lib/cadooz/models/mutable/address.rb', line 4 def salutation @salutation end |
#state ⇒ Object
Returns the value of attribute state.
4 5 6 |
# File 'lib/cadooz/models/mutable/address.rb', line 4 def state @state end |
#street ⇒ Object
Returns the value of attribute street.
4 5 6 |
# File 'lib/cadooz/models/mutable/address.rb', line 4 def street @street end |
#street_addon ⇒ Object
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 |
#zipcode ⇒ Object
Returns the value of attribute zipcode.
4 5 6 |
# File 'lib/cadooz/models/mutable/address.rb', line 4 def zipcode @zipcode end |