Class: CapsuleCRM::Contact
- Defined in:
- lib/capsulecrm/contact.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
Attributes inherited from Child
Attributes inherited from Base
Class Method Summary collapse
-
.xml_map ⇒ Object
nodoc.
Instance Method Summary collapse
-
#attributes ⇒ Object
nodoc.
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
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/capsulecrm/contact.rb', line 3 def type @type end |
Class Method Details
.xml_map ⇒ Object
nodoc
23 24 25 26 |
# File 'lib/capsulecrm/contact.rb', line 23 def self.xml_map map = {'type' => 'type'} super.merge map end |
Instance Method Details
#attributes ⇒ Object
nodoc
7 8 9 10 11 12 13 14 |
# File 'lib/capsulecrm/contact.rb', line 7 def attributes attrs = {} arr = [:type] arr.each do |key| attrs[key] = self.send(key) end attrs end |