Class: Bronto::Message::Content
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#subject ⇒ Object
Returns the value of attribute subject.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, subject, content) ⇒ Content
constructor
A new instance of Content.
- #to_hash ⇒ Object
Constructor Details
#initialize(type, subject, content) ⇒ Content
Returns a new instance of Content.
25 26 27 28 29 |
# File 'lib/bronto/message.rb', line 25 def initialize(type, subject, content) self.type = type self.subject = subject self.content = content end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
23 24 25 |
# File 'lib/bronto/message.rb', line 23 def content @content end |
#subject ⇒ Object
Returns the value of attribute subject.
23 24 25 |
# File 'lib/bronto/message.rb', line 23 def subject @subject end |
#type ⇒ Object
Returns the value of attribute type.
23 24 25 |
# File 'lib/bronto/message.rb', line 23 def type @type end |
Instance Method Details
#to_hash ⇒ Object
31 32 33 |
# File 'lib/bronto/message.rb', line 31 def to_hash { type: type, subject: subject, content: content } end |