Class: Gifmagazine::Response

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

Instance Method Summary collapse

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

#bodyObject



9
10
11
# File 'lib/gifmagazine/response.rb', line 9

def body
  @body
end

#headersObject



13
14
15
# File 'lib/gifmagazine/response.rb', line 13

def headers
  @header
end

#statusObject



17
18
19
# File 'lib/gifmagazine/response.rb', line 17

def status
  @status
end