Class: Bronto::Contact::Field
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#field_id ⇒ Object
Returns the value of attribute field_id.
Instance Method Summary collapse
-
#initialize(id, content) ⇒ Field
constructor
A new instance of Field.
- #to_hash ⇒ Object
Constructor Details
#initialize(id, content) ⇒ Field
Returns a new instance of Field.
52 53 54 55 |
# File 'lib/bronto/contact.rb', line 52 def initialize(id, content) self.field_id = id self.content = content end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
50 51 52 |
# File 'lib/bronto/contact.rb', line 50 def content @content end |
#field_id ⇒ Object
Returns the value of attribute field_id.
50 51 52 |
# File 'lib/bronto/contact.rb', line 50 def field_id @field_id end |
Instance Method Details
#to_hash ⇒ Object
57 58 59 |
# File 'lib/bronto/contact.rb', line 57 def to_hash { field_id: field_id, content: content } end |