Class: Message

Inherits:
Struct show all
Defined in:
lib/models/message.rb

Overview

Class Message represents structure of message

message = Message.new
message.code    # => Integer
message.message # => String

Instance Attribute Summary collapse

Method Summary

Methods inherited from Struct

from_array, from_hash

Instance Attribute Details

#codeObject

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



7
8
9
# File 'lib/models/message.rb', line 7

def code
  @code
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



7
8
9
# File 'lib/models/message.rb', line 7

def message
  @message
end