Class: Bronto::Contact::Field

Inherits:
Object
  • Object
show all
Defined in:
lib/bronto/contact.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject

Returns the value of attribute content.



86
87
88
# File 'lib/bronto/contact.rb', line 86

def content
  @content
end

#field_idObject

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_hashObject



93
94
95
# File 'lib/bronto/contact.rb', line 93

def to_hash
  { field_id: field_id, content: content }
end