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