Class: Yuso::DeliveryTimePeriod

Inherits:
Object
  • Object
show all
Defined in:
lib/yuso/delivery_time_period.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(company:, period:, deadline: nil) ⇒ DeliveryTimePeriod

Returns a new instance of DeliveryTimePeriod.



4
5
6
7
8
# File 'lib/yuso/delivery_time_period.rb', line 4

def initialize(company:, period:, deadline: nil)
  @company = company
  @period = period
  @deadline = deadline
end

Instance Attribute Details

#companyObject (readonly)

Returns the value of attribute company.



3
4
5
# File 'lib/yuso/delivery_time_period.rb', line 3

def company
  @company
end

#deadlineObject (readonly)

Returns the value of attribute deadline.



3
4
5
# File 'lib/yuso/delivery_time_period.rb', line 3

def deadline
  @deadline
end

#periodObject (readonly)

Returns the value of attribute period.



3
4
5
# File 'lib/yuso/delivery_time_period.rb', line 3

def period
  @period
end

Instance Method Details

#to_sObject



10
11
12
# File 'lib/yuso/delivery_time_period.rb', line 10

def to_s
  period
end