Class: QMsg::QQMessage

Inherits:
Struct
  • Object
show all
Defined in:
lib/qmessage.rb,
lib/qmessage.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



5
6
7
# File 'lib/qmessage.rb', line 5

def message
  @message
end

#timeObject

Returns the value of attribute time

Returns:

  • (Object)

    the current value of time



5
6
7
# File 'lib/qmessage.rb', line 5

def time
  @time
end

#u_codeObject

Returns the value of attribute u_code

Returns:

  • (Object)

    the current value of u_code



5
6
7
# File 'lib/qmessage.rb', line 5

def u_code
  @u_code
end

#u_nameObject

Returns the value of attribute u_name

Returns:

  • (Object)

    the current value of u_name



5
6
7
# File 'lib/qmessage.rb', line 5

def u_name
  @u_name
end

Instance Method Details

#to_json(num) ⇒ Object



8
9
10
# File 'lib/qmessage.rb', line 8

def to_json(num)
  self.to_h.to_json(num)
end