Class: CapsuleCRM::Phone

Inherits:
Contact show all
Defined in:
lib/capsulecrm/phone.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

#numberObject

Returns the value of attribute number.



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

def number
  @number
end

Class Method Details

.xml_mapObject

nodoc



7
8
9
10
11
12
# File 'lib/capsulecrm/phone.rb', line 7

def self.xml_map
  map = {
    'phoneNumber' => 'number'
  }
  super.merge map
end