Class: Monkeylearn::Response
- Inherits:
-
Object
- Object
- Monkeylearn::Response
- Defined in:
- lib/monkeylearn/response.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#plan_queries_allowed ⇒ Object
readonly
Returns the value of attribute plan_queries_allowed.
-
#plan_queries_remaining ⇒ Object
readonly
Returns the value of attribute plan_queries_remaining.
-
#raw_response ⇒ Object
Returns the value of attribute raw_response.
-
#request_queries_used ⇒ Object
readonly
Returns the value of attribute request_queries_used.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(raw_response) ⇒ Response
constructor
A new instance of Response.
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
#body ⇒ Object (readonly)
Returns the value of attribute body.
3 4 5 |
# File 'lib/monkeylearn/response.rb', line 3 def body @body end |
#plan_queries_allowed ⇒ Object (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_remaining ⇒ Object (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_response ⇒ Object
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_used ⇒ Object (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 |
#status ⇒ Object (readonly)
Returns the value of attribute status.
3 4 5 |
# File 'lib/monkeylearn/response.rb', line 3 def status @status end |