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

- (Response) initialize(method, request_uri, status, body)

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

- (Object) body

Returns the value of attribute body



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

def body
  @body
end

- (Object) method

Returns the value of attribute method



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

def method
  @method
end

- (Object) request_uri

Returns the value of attribute request_uri



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

def request_uri
  @request_uri
end

- (Object) status

Returns the value of attribute status



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

def status
  @status
end