Class: MonoMerchant::Statement
- Inherits:
-
ApiRequest
- Object
- ApiRequest
- MonoMerchant::Statement
- Defined in:
- lib/mono-merchant/statement.rb
Constant Summary
Constants inherited from ApiRequest
ApiRequest::API_URL, ApiRequest::DEFAULT_CURRENCY
Instance Attribute Summary collapse
-
#from ⇒ Object
readonly
Returns the value of attribute from.
-
#to ⇒ Object
readonly
Returns the value of attribute to.
Attributes inherited from ApiRequest
Instance Method Summary collapse
-
#initialize(from: nil, to: nil) ⇒ Statement
constructor
A new instance of Statement.
Methods inherited from ApiRequest
Constructor Details
#initialize(from: nil, to: nil) ⇒ Statement
Returns a new instance of Statement.
8 9 10 11 |
# File 'lib/mono-merchant/statement.rb', line 8 def initialize(from: nil, to: nil) @from, @to = from, to super(type: :get) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class MonoMerchant::ApiRequest
Instance Attribute Details
#from ⇒ Object (readonly)
Returns the value of attribute from.
4 5 6 |
# File 'lib/mono-merchant/statement.rb', line 4 def from @from end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
4 5 6 |
# File 'lib/mono-merchant/statement.rb', line 4 def to @to end |