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.
95 96 97 98 |
# File 'lib/bronto/contact.rb', line 95 def initialize(id, content) self.field_id = id self.content = content end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
93 94 95 |
# File 'lib/bronto/contact.rb', line 93 def content @content end |
#field_id ⇒ Object
Returns the value of attribute field_id.
93 94 95 |
# File 'lib/bronto/contact.rb', line 93 def field_id @field_id end |
Instance Method Details
#to_hash ⇒ Object
100 101 102 |
# File 'lib/bronto/contact.rb', line 100 def to_hash { field_id: field_id, content: content } end |