Class: RMasm::Report::Message

Inherits:
Object
  • Object
show all
Defined in:
lib/rmasm/report.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, message)
  @msgtype = msgtype
  @code = code
  @message = message
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



26
27
28
# File 'lib/rmasm/report.rb', line 26

def code
  @code
end

#messageObject (readonly)

Returns the value of attribute message.



26
27
28
# File 'lib/rmasm/report.rb', line 26

def message
  @message
end

#msgtypeObject (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_sObject



34
35
36
# File 'lib/rmasm/report.rb', line 34

def to_s()
  "#{@msgtype} : #{@code} : #{@message}"
end