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, headers) ⇒ Response


43
44
45
46
47
48
49
# File 'lib/grackle/transport.rb', line 43

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

Instance Attribute Details

#bodyObject

Returns the value of attribute body


41
42
43
# File 'lib/grackle/transport.rb', line 41

def body
  @body
end

#headersObject

Returns the value of attribute headers


41
42
43
# File 'lib/grackle/transport.rb', line 41

def headers
  @headers
end

#methodObject

Returns the value of attribute method


41
42
43
# File 'lib/grackle/transport.rb', line 41

def method
  @method
end

#request_uriObject

Returns the value of attribute request_uri


41
42
43
# File 'lib/grackle/transport.rb', line 41

def request_uri
  @request_uri
end

#statusObject

Returns the value of attribute status


41
42
43
# File 'lib/grackle/transport.rb', line 41

def status
  @status
end