Class: MeshChat::Net::Listener::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/meshchat/net/listener/request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(input) ⇒ Request

Returns a new instance of Request.



8
9
10
11
12
# File 'lib/meshchat/net/listener/request.rb', line 8

def initialize(input)
  self._input = try_decrypt(input)
  self.json = JSON.parse(_input)
  self.message = process_json
end

Instance Attribute Details

#_inputObject

Returns the value of attribute _input.



6
7
8
# File 'lib/meshchat/net/listener/request.rb', line 6

def _input
  @_input
end

#jsonObject

Returns the value of attribute json.



5
6
7
# File 'lib/meshchat/net/listener/request.rb', line 5

def json
  @json
end

#messageObject

Returns the value of attribute message.



5
6
7
# File 'lib/meshchat/net/listener/request.rb', line 5

def message
  @message
end