Class: ConstantContact::Components::ContactList
- Defined in:
- lib/constantcontact/components/contacts/contact_list.rb
Instance Attribute Summary collapse
-
#contact_count ⇒ Object
Returns the value of attribute contact_count.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#status ⇒ Object
Returns the value of attribute status.
Class Method Summary collapse
-
.create(props) ⇒ ContactList
Factory method to create a ContactList object from a json string.
Methods inherited from Component
#to_hash, to_hash_value, #to_json
Instance Attribute Details
#contact_count ⇒ Object
Returns the value of attribute contact_count
10 11 12 |
# File 'lib/constantcontact/components/contacts/contact_list.rb', line 10 def contact_count @contact_count end |
#id ⇒ Object
Returns the value of attribute id
10 11 12 |
# File 'lib/constantcontact/components/contacts/contact_list.rb', line 10 def id @id end |
#name ⇒ Object
Returns the value of attribute name
10 11 12 |
# File 'lib/constantcontact/components/contacts/contact_list.rb', line 10 def name @name end |
#status ⇒ Object
Returns the value of attribute status
10 11 12 |
# File 'lib/constantcontact/components/contacts/contact_list.rb', line 10 def status @status end |
Class Method Details
.create(props) ⇒ ContactList
Factory method to create a ContactList object from a json string
15 16 17 18 19 20 21 22 23 |
# File 'lib/constantcontact/components/contacts/contact_list.rb', line 15 def self.create(props) obj = ContactList.new if props props.each do |key, value| obj.send("#{key}=", value) if obj.respond_to? key end end obj end |