Class: Gifmagazine::Response
- Inherits:
-
Object
- Object
- Gifmagazine::Response
- Defined in:
- lib/gifmagazine/response.rb
Instance Method Summary collapse
- #body ⇒ Object
- #headers ⇒ Object
-
#initialize(faraday_response) ⇒ Response
constructor
A new instance of Response.
- #status ⇒ Object
Constructor Details
#initialize(faraday_response) ⇒ Response
Returns a new instance of Response.
3 4 5 6 7 |
# File 'lib/gifmagazine/response.rb', line 3 def initialize(faraday_response) @header = faraday_response.headers @body = faraday_response.body @status = faraday_response.status end |
Instance Method Details
#body ⇒ Object
9 10 11 |
# File 'lib/gifmagazine/response.rb', line 9 def body @body end |
#headers ⇒ Object
13 14 15 |
# File 'lib/gifmagazine/response.rb', line 13 def headers @header end |
#status ⇒ Object
17 18 19 |
# File 'lib/gifmagazine/response.rb', line 17 def status @status end |