Class: Bronto::Message::Content

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject

Returns the value of attribute content.



23
24
25
# File 'lib/bronto/message.rb', line 23

def content
  @content
end

#subjectObject

Returns the value of attribute subject.



23
24
25
# File 'lib/bronto/message.rb', line 23

def subject
  @subject
end

#typeObject

Returns the value of attribute type.



23
24
25
# File 'lib/bronto/message.rb', line 23

def type
  @type
end

Instance Method Details

#to_hashObject



31
32
33
# File 'lib/bronto/message.rb', line 31

def to_hash
  { type: type, subject: subject, content: content }
end