Class: CzechPostB2bClient::Services::TimePeriodStatisticator

Inherits:
Communicator show all
Defined in:
lib/czech_post_b2b_client/services/time_period_statisticator.rb

Defined Under Namespace

Classes: TimePeriodStatisticatorRequestsResult, TimePeriodStatisticatorResult

Instance Attribute Summary collapse

Attributes inherited from SteppedService::Base

#result

Instance Method Summary collapse

Methods inherited from Communicator

#steps

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_dateObject (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_dateObject (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