Class: MonoMerchant::Statement

Inherits:
ApiRequest show all
Defined in:
lib/mono-merchant/statement.rb

Constant Summary

Constants inherited from ApiRequest

ApiRequest::API_URL, ApiRequest::DEFAULT_CURRENCY

Instance Attribute Summary collapse

Attributes inherited from ApiRequest

#errors, #type

Instance Method Summary collapse

Methods inherited from ApiRequest

#url

Constructor Details

#initialize(from: nil, to: nil) ⇒ Statement

Returns a new instance of Statement.

Parameters:

  • from (Integer) (defaults to: nil)
    • utc unix timestamp

  • to (Integer) (defaults to: nil)
    • utc unix timestamp



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

#fromObject (readonly)

Returns the value of attribute from.



4
5
6
# File 'lib/mono-merchant/statement.rb', line 4

def from
  @from
end

#toObject (readonly)

Returns the value of attribute to.



4
5
6
# File 'lib/mono-merchant/statement.rb', line 4

def to
  @to
end