Class: GQTP::Server::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/gqtp/server.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(header, body) ⇒ Request

Returns a new instance of Request.



93
94
95
96
# File 'lib/gqtp/server.rb', line 93

def initialize(header, body)
  @header = header
  @body = body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



92
93
94
# File 'lib/gqtp/server.rb', line 92

def body
  @body
end

#headerObject (readonly)

Returns the value of attribute header.



92
93
94
# File 'lib/gqtp/server.rb', line 92

def header
  @header
end