Class: ComicVine::Api::Response
- Inherits:
-
Object
- Object
- ComicVine::Api::Response
- Defined in:
- lib/comic_vine/api/response.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#limit ⇒ Object
readonly
Returns the value of attribute limit.
-
#number_of_page_results ⇒ Object
readonly
Returns the value of attribute number_of_page_results.
-
#number_of_total_results ⇒ Object
readonly
Returns the value of attribute number_of_total_results.
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
-
#raw_response ⇒ Object
readonly
Returns the value of attribute raw_response.
-
#results ⇒ Object
readonly
Returns the value of attribute results.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(status:, headers:, body:) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(status:, headers:, body:) ⇒ Response
Returns a new instance of Response.
8 9 10 11 12 13 14 |
# File 'lib/comic_vine/api/response.rb', line 8 def initialize(status:, headers:, body:) @status = status @headers = headers @body = body parse_body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
4 5 6 |
# File 'lib/comic_vine/api/response.rb', line 4 def body @body end |
#error ⇒ Object (readonly)
Returns the value of attribute error.
4 5 6 |
# File 'lib/comic_vine/api/response.rb', line 4 def error @error end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
4 5 6 |
# File 'lib/comic_vine/api/response.rb', line 4 def headers @headers end |
#limit ⇒ Object (readonly)
Returns the value of attribute limit.
4 5 6 |
# File 'lib/comic_vine/api/response.rb', line 4 def limit @limit end |
#number_of_page_results ⇒ Object (readonly)
Returns the value of attribute number_of_page_results.
4 5 6 |
# File 'lib/comic_vine/api/response.rb', line 4 def number_of_page_results @number_of_page_results end |
#number_of_total_results ⇒ Object (readonly)
Returns the value of attribute number_of_total_results.
4 5 6 |
# File 'lib/comic_vine/api/response.rb', line 4 def number_of_total_results @number_of_total_results end |
#offset ⇒ Object (readonly)
Returns the value of attribute offset.
4 5 6 |
# File 'lib/comic_vine/api/response.rb', line 4 def offset @offset end |
#raw_response ⇒ Object (readonly)
Returns the value of attribute raw_response.
4 5 6 |
# File 'lib/comic_vine/api/response.rb', line 4 def raw_response @raw_response end |
#results ⇒ Object (readonly)
Returns the value of attribute results.
4 5 6 |
# File 'lib/comic_vine/api/response.rb', line 4 def results @results end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
4 5 6 |
# File 'lib/comic_vine/api/response.rb', line 4 def status @status end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
4 5 6 |
# File 'lib/comic_vine/api/response.rb', line 4 def status_code @status_code end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
4 5 6 |
# File 'lib/comic_vine/api/response.rb', line 4 def version @version end |