Class: CzechPostB2bClient::RequestBuilders::GetStatsBuilder
- Inherits:
-
BaseBuilder
- Object
- SteppedService::Base
- BaseBuilder
- CzechPostB2bClient::RequestBuilders::GetStatsBuilder
- Defined in:
- lib/czech_post_b2b_client/request_builders/get_stats_builder.rb
Constant Summary
Constants inherited from BaseBuilder
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 BaseBuilder
Attributes inherited from SteppedService::Base
Instance Method Summary collapse
-
#initialize(from_date:, to_date:, request_id: 1) ⇒ GetStatsBuilder
constructor
A new instance of GetStatsBuilder.
Methods inherited from BaseBuilder
Methods inherited from SteppedService::Base
call, #call, #errors, #failure?, #finished?, #steps, #success?
Constructor Details
#initialize(from_date:, to_date:, request_id: 1) ⇒ GetStatsBuilder
Returns a new instance of GetStatsBuilder
8 9 10 11 12 |
# File 'lib/czech_post_b2b_client/request_builders/get_stats_builder.rb', line 8 def initialize(from_date:, to_date:, request_id: 1) @from_date = from_date.to_time @to_date = to_date.to_time @request_id = request_id end |
Instance Attribute Details
#from_date ⇒ Object (readonly)
Returns the value of attribute from_date
6 7 8 |
# File 'lib/czech_post_b2b_client/request_builders/get_stats_builder.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/request_builders/get_stats_builder.rb', line 6 def to_date @to_date end |