Class: CurrencyLayer::TimeframeRequest
- Inherits:
-
Object
- Object
- CurrencyLayer::TimeframeRequest
- Includes:
- Hashable
- Defined in:
- lib/currency_conversion/timeframe/timeframe_request.rb
Instance Attribute Summary collapse
-
#query ⇒ Object
Returns the value of attribute query.
Instance Method Summary collapse
-
#initialize(query = {}) ⇒ TimeframeRequest
constructor
A new instance of TimeframeRequest.
Constructor Details
#initialize(query = {}) ⇒ TimeframeRequest
Returns a new instance of TimeframeRequest.
11 12 13 14 15 |
# File 'lib/currency_conversion/timeframe/timeframe_request.rb', line 11 def initialize(query = {}) self.query = query end |
Instance Attribute Details
#query ⇒ Object
Returns the value of attribute query.
9 10 11 |
# File 'lib/currency_conversion/timeframe/timeframe_request.rb', line 9 def query @query end |