Class: Xrc::Messages::Subject
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#subject ⇒ String
Returns the message subject (e.g. Room1).
-
#to_hash ⇒ Hash
Returns this message in Hash format.
Methods inherited from Base
#delayed?, #from, #initialize, #to, #type
Constructor Details
This class inherits a constructor from Xrc::Messages::Base
Instance Method Details
#subject ⇒ String
Returns the message subject (e.g. Room1)
8 9 10 |
# File 'lib/xrc/messages/subject.rb', line 8 def subject @element.elements["subject/text()"].to_s end |
#to_hash ⇒ Hash
Returns this message in Hash format
20 21 22 23 24 25 26 |
# File 'lib/xrc/messages/subject.rb', line 20 def to_hash { from: from, to: to, subject: subject, } end |