Class: Bond::Message

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject

Returns the value of attribute content.



6
7
8
# File 'lib/bond/message.rb', line 6

def content
  @content
end

#guidObject

Returns the value of attribute guid.



6
7
8
# File 'lib/bond/message.rb', line 6

def guid
  @guid
end

#handwritingObject

Returns the value of attribute handwriting.



6
7
8
# File 'lib/bond/message.rb', line 6

def handwriting
  @handwriting
end

Returns the value of attribute links.



6
7
8
# File 'lib/bond/message.rb', line 6

def links
  @links
end

#recipient_addressObject

Returns the value of attribute recipient_address.



6
7
8
# File 'lib/bond/message.rb', line 6

def recipient_address
  @recipient_address
end

#sender_addressObject

Returns the value of attribute sender_address.



6
7
8
# File 'lib/bond/message.rb', line 6

def sender_address
  @sender_address
end

#stationary_idObject

Returns the value of attribute stationary_id.



6
7
8
# File 'lib/bond/message.rb', line 6

def stationary_id
  @stationary_id
end