Class: CurrencyConversion::Currencies
- Inherits:
-
Object
- Object
- CurrencyConversion::Currencies
- Defined in:
- lib/currency-conversion/objects/currencies.rb
Overview
Currencies
Instance Attribute Summary collapse
-
#body ⇒ Hash
readonly
The response body.
-
#response ⇒ Faraday::Response
readonly
The Faraday Response.
Instance Method Summary collapse
- #data ⇒ Object
-
#initialize(response) ⇒ Currencies
constructor
A new instance of Currencies.
Constructor Details
#initialize(response) ⇒ Currencies
Returns a new instance of Currencies.
12 13 14 15 |
# File 'lib/currency-conversion/objects/currencies.rb', line 12 def initialize(response) @response = response @body = response.body end |
Instance Attribute Details
#body ⇒ Hash (readonly)
Returns The response body.
7 8 9 |
# File 'lib/currency-conversion/objects/currencies.rb', line 7 def body @body end |
#response ⇒ Faraday::Response (readonly)
Returns The Faraday Response.
10 11 12 |
# File 'lib/currency-conversion/objects/currencies.rb', line 10 def response @response end |
Instance Method Details
#data ⇒ Object
17 18 19 |
# File 'lib/currency-conversion/objects/currencies.rb', line 17 def data body['data'] end |