Class: CapsuleCRM::Address
- Defined in:
- lib/capsulecrm/address.rb
Instance Attribute Summary collapse
-
#city ⇒ Object
Returns the value of attribute city.
-
#country ⇒ Object
Returns the value of attribute country.
-
#state ⇒ Object
Returns the value of attribute state.
-
#street ⇒ Object
Returns the value of attribute street.
-
#zip ⇒ Object
Returns the value of attribute zip.
Attributes inherited from Contact
Attributes inherited from Child
Attributes inherited from Base
Class Method Summary collapse
-
.xml_map ⇒ Object
nodoc.
Methods inherited from Contact
Methods inherited from Child
init_many, init_one, #initialize
Methods inherited from Base
#==, #errors, find, #initialize, last_response, #new_record?
Constructor Details
This class inherits a constructor from CapsuleCRM::Child
Instance Attribute Details
#city ⇒ Object
Returns the value of attribute city.
4 5 6 |
# File 'lib/capsulecrm/address.rb', line 4 def city @city end |
#country ⇒ Object
Returns the value of attribute country.
7 8 9 |
# File 'lib/capsulecrm/address.rb', line 7 def country @country end |
#state ⇒ Object
Returns the value of attribute state.
5 6 7 |
# File 'lib/capsulecrm/address.rb', line 5 def state @state end |
#street ⇒ Object
Returns the value of attribute street.
3 4 5 |
# File 'lib/capsulecrm/address.rb', line 3 def street @street end |
#zip ⇒ Object
Returns the value of attribute zip.
6 7 8 |
# File 'lib/capsulecrm/address.rb', line 6 def zip @zip end |
Class Method Details
.xml_map ⇒ Object
nodoc
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/capsulecrm/address.rb', line 11 def self.xml_map map = { 'street' => 'street', 'city' => 'city', 'state' => 'state', 'zip' => 'zip', 'country' => 'country' } super.merge map end |