Class: Yuso::DeliveryTimePeriod
- Inherits:
-
Object
- Object
- Yuso::DeliveryTimePeriod
- Defined in:
- lib/yuso/delivery_time_period.rb
Instance Attribute Summary collapse
-
#company ⇒ Object
readonly
Returns the value of attribute company.
-
#deadline ⇒ Object
readonly
Returns the value of attribute deadline.
-
#period ⇒ Object
readonly
Returns the value of attribute period.
Instance Method Summary collapse
-
#initialize(company:, period:, deadline: nil) ⇒ DeliveryTimePeriod
constructor
A new instance of DeliveryTimePeriod.
- #to_s ⇒ Object
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
#company ⇒ Object (readonly)
Returns the value of attribute company.
3 4 5 |
# File 'lib/yuso/delivery_time_period.rb', line 3 def company @company end |
#deadline ⇒ Object (readonly)
Returns the value of attribute deadline.
3 4 5 |
# File 'lib/yuso/delivery_time_period.rb', line 3 def deadline @deadline end |
#period ⇒ Object (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_s ⇒ Object
10 11 12 |
# File 'lib/yuso/delivery_time_period.rb', line 10 def to_s period end |