Class: RMasm::Report::Message
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#msgtype ⇒ Object
readonly
Returns the value of attribute msgtype.
Instance Method Summary collapse
-
#initialize(msgtype, code, message) ⇒ Message
constructor
A new instance of Message.
- #to_s ⇒ Object
Constructor Details
#initialize(msgtype, code, message) ⇒ Message
Returns a new instance of Message.
28 29 30 31 32 |
# File 'lib/rmasm/report.rb', line 28 def initialize(msgtype, code, ) @msgtype = msgtype @code = code @message = end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
26 27 28 |
# File 'lib/rmasm/report.rb', line 26 def code @code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
26 27 28 |
# File 'lib/rmasm/report.rb', line 26 def @message end |
#msgtype ⇒ Object (readonly)
Returns the value of attribute msgtype.
26 27 28 |
# File 'lib/rmasm/report.rb', line 26 def msgtype @msgtype end |
Instance Method Details
#to_s ⇒ Object
34 35 36 |
# File 'lib/rmasm/report.rb', line 34 def to_s() "#{@msgtype} : #{@code} : #{@message}" end |