Class: Grackle::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/grackle/transport.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(method, request_uri, status, body) ⇒ Response

Returns a new instance of Response.



6
7
8
9
10
11
# File 'lib/grackle/transport.rb', line 6

def initialize(method,request_uri,status,body)
  self.method = method
  self.request_uri = request_uri
  self.status = status
  self.body = body
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



4
5
6
# File 'lib/grackle/transport.rb', line 4

def body
  @body
end

#methodObject

Returns the value of attribute method.



4
5
6
# File 'lib/grackle/transport.rb', line 4

def method
  @method
end

#request_uriObject

Returns the value of attribute request_uri.



4
5
6
# File 'lib/grackle/transport.rb', line 4

def request_uri
  @request_uri
end

#statusObject

Returns the value of attribute status.



4
5
6
# File 'lib/grackle/transport.rb', line 4

def status
  @status
end