Class: Monkeylearn::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/monkeylearn/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw_response) ⇒ Response

Returns a new instance of Response.



5
6
7
# File 'lib/monkeylearn/response.rb', line 5

def initialize(raw_response)
  self.raw_response = raw_response
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



3
4
5
# File 'lib/monkeylearn/response.rb', line 3

def body
  @body
end

#plan_queries_allowedObject (readonly)

Returns the value of attribute plan_queries_allowed.



3
4
5
# File 'lib/monkeylearn/response.rb', line 3

def plan_queries_allowed
  @plan_queries_allowed
end

#plan_queries_remainingObject (readonly)

Returns the value of attribute plan_queries_remaining.



3
4
5
# File 'lib/monkeylearn/response.rb', line 3

def plan_queries_remaining
  @plan_queries_remaining
end

#raw_responseObject

Returns the value of attribute raw_response.



3
4
5
# File 'lib/monkeylearn/response.rb', line 3

def raw_response
  @raw_response
end

#request_queries_usedObject (readonly)

Returns the value of attribute request_queries_used.



3
4
5
# File 'lib/monkeylearn/response.rb', line 3

def request_queries_used
  @request_queries_used
end

#statusObject (readonly)

Returns the value of attribute status.



3
4
5
# File 'lib/monkeylearn/response.rb', line 3

def status
  @status
end