Class: Flurry::Response

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

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ Response

Returns a new instance of Response.



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

def initialize(response)
  @response = response
end

Instance Method Details

#bodyObject



7
8
9
# File 'lib/flurry/response.rb', line 7

def body
  @response.parsed_response
end

#codeObject



11
12
13
# File 'lib/flurry/response.rb', line 11

def code
  @response.code
end

#messageObject



15
16
17
# File 'lib/flurry/response.rb', line 15

def message
  raw.message
end

#rawObject



19
20
21
# File 'lib/flurry/response.rb', line 19

def raw
  @response.response
end