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