Class: Envoy::Message
- Inherits:
-
Object
- Object
- Envoy::Message
- Defined in:
- lib/envoy/message.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#name ⇒ Object
Returns the value of attribute name.
-
#options ⇒ Object
Returns the value of attribute options.
-
#subject ⇒ Object
Returns the value of attribute subject.
Instance Method Summary collapse
-
#initialize(name, subject, body = nil, options = {}) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(name, subject, body = nil, options = {}) ⇒ Message
Returns a new instance of Message.
5 6 7 8 9 10 |
# File 'lib/envoy/message.rb', line 5 def initialize(name, subject, body = nil, = {}) self.name = name self.body = body self.subject = subject self. = end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
3 4 5 |
# File 'lib/envoy/message.rb', line 3 def body @body end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/envoy/message.rb', line 3 def name @name end |
#options ⇒ Object
Returns the value of attribute options.
3 4 5 |
# File 'lib/envoy/message.rb', line 3 def @options end |
#subject ⇒ Object
Returns the value of attribute subject.
3 4 5 |
# File 'lib/envoy/message.rb', line 3 def subject @subject end |