Class: CzechPostB2bClient::Services::TimePeriodStatisticator
- Inherits:
-
Communicator
- Object
- SteppedService::Base
- Orchestrator
- Communicator
- CzechPostB2bClient::Services::TimePeriodStatisticator
- Defined in:
- lib/czech_post_b2b_client/services/time_period_statisticator.rb
Defined Under Namespace
Classes: TimePeriodStatisticatorRequestsResult, TimePeriodStatisticatorResult
Instance Attribute Summary collapse
-
#from_date ⇒ Object
readonly
Returns the value of attribute from_date.
-
#to_date ⇒ Object
readonly
Returns the value of attribute to_date.
Attributes inherited from SteppedService::Base
Instance Method Summary collapse
-
#initialize(from_date:, to_date:) ⇒ TimePeriodStatisticator
constructor
A new instance of TimePeriodStatisticator.
Methods inherited from Communicator
Methods inherited from SteppedService::Base
call, #call, #errors, #failure?, #finished?, #steps, #success?
Constructor Details
#initialize(from_date:, to_date:) ⇒ TimePeriodStatisticator
Returns a new instance of TimePeriodStatisticator.
11 12 13 14 15 |
# File 'lib/czech_post_b2b_client/services/time_period_statisticator.rb', line 11 def initialize(from_date:, to_date:) super() @from_date = from_date @to_date = to_date end |
Instance Attribute Details
#from_date ⇒ Object (readonly)
Returns the value of attribute from_date.
6 7 8 |
# File 'lib/czech_post_b2b_client/services/time_period_statisticator.rb', line 6 def from_date @from_date end |
#to_date ⇒ Object (readonly)
Returns the value of attribute to_date.
6 7 8 |
# File 'lib/czech_post_b2b_client/services/time_period_statisticator.rb', line 6 def to_date @to_date end |