Class: Strava::Web::ApiResponse
- Inherits:
-
Object
- Object
- Strava::Web::ApiResponse
- Defined in:
- lib/strava/web/api_response.rb
Instance Attribute Summary collapse
-
#ratelimit ⇒ Object
Returns the value of attribute ratelimit.
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(http_response) ⇒ ApiResponse
constructor
A new instance of ApiResponse.
Constructor Details
#initialize(http_response) ⇒ ApiResponse
Returns a new instance of ApiResponse.
11 12 13 14 |
# File 'lib/strava/web/api_response.rb', line 11 def initialize(http_response) @response = http_response @ratelimit = Strava::Api::Ratelimit.new(http_response) end |
Instance Attribute Details
#ratelimit ⇒ Object
Returns the value of attribute ratelimit.
6 7 8 |
# File 'lib/strava/web/api_response.rb', line 6 def ratelimit @ratelimit end |
#response ⇒ Object
Returns the value of attribute response.
6 7 8 |
# File 'lib/strava/web/api_response.rb', line 6 def response @response end |