Class: Bond::Message
- Inherits:
-
Object
- Object
- Bond::Message
- Defined in:
- lib/bond/message.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#guid ⇒ Object
Returns the value of attribute guid.
-
#handwriting ⇒ Object
Returns the value of attribute handwriting.
-
#links ⇒ Object
Returns the value of attribute links.
-
#recipient_address ⇒ Object
Returns the value of attribute recipient_address.
-
#sender_address ⇒ Object
Returns the value of attribute sender_address.
-
#stationary_id ⇒ Object
Returns the value of attribute stationary_id.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(attributes = {}) ⇒ Message
9 10 11 |
# File 'lib/bond/message.rb', line 9 def initialize(attributes = {}) attributes.each { |name, value| instance_variable_set("@#{name}", value) } end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
6 7 8 |
# File 'lib/bond/message.rb', line 6 def content @content end |
#guid ⇒ Object
Returns the value of attribute guid.
6 7 8 |
# File 'lib/bond/message.rb', line 6 def guid @guid end |
#handwriting ⇒ Object
Returns the value of attribute handwriting.
6 7 8 |
# File 'lib/bond/message.rb', line 6 def handwriting @handwriting end |
#links ⇒ Object
Returns the value of attribute links.
6 7 8 |
# File 'lib/bond/message.rb', line 6 def links @links end |
#recipient_address ⇒ Object
Returns the value of attribute recipient_address.
6 7 8 |
# File 'lib/bond/message.rb', line 6 def recipient_address @recipient_address end |
#sender_address ⇒ Object
Returns the value of attribute sender_address.
6 7 8 |
# File 'lib/bond/message.rb', line 6 def sender_address @sender_address end |
#stationary_id ⇒ Object
Returns the value of attribute stationary_id.
6 7 8 |
# File 'lib/bond/message.rb', line 6 def stationary_id @stationary_id end |