Class: CapsuleCRM::Address

Inherits:
Contact show all
Defined in:
lib/capsulecrm/address.rb

Instance Attribute Summary collapse

Attributes inherited from Contact

#type

Attributes inherited from Child

#parent

Attributes inherited from Base

#id, #raw_data

Class Method Summary collapse

Methods inherited from Contact

#attributes

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

#cityObject

Returns the value of attribute city.



4
5
6
# File 'lib/capsulecrm/address.rb', line 4

def city
  @city
end

#countryObject

Returns the value of attribute country.



7
8
9
# File 'lib/capsulecrm/address.rb', line 7

def country
  @country
end

#stateObject

Returns the value of attribute state.



5
6
7
# File 'lib/capsulecrm/address.rb', line 5

def state
  @state
end

#streetObject

Returns the value of attribute street.



3
4
5
# File 'lib/capsulecrm/address.rb', line 3

def street
  @street
end

#zipObject

Returns the value of attribute zip.



6
7
8
# File 'lib/capsulecrm/address.rb', line 6

def zip
  @zip
end

Class Method Details

.xml_mapObject

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