Class: Deliveries::Checkpoint
- Inherits:
-
Object
- Object
- Deliveries::Checkpoint
- Defined in:
- lib/deliveries/checkpoint.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#location ⇒ Object
Returns the value of attribute location.
-
#status ⇒ Object
Returns the value of attribute status.
-
#tracked_at ⇒ Object
Returns the value of attribute tracked_at.
Instance Method Summary collapse
-
#initialize(status: nil, location: nil, tracked_at: nil, description: nil) ⇒ Checkpoint
constructor
A new instance of Checkpoint.
Constructor Details
#initialize(status: nil, location: nil, tracked_at: nil, description: nil) ⇒ Checkpoint
Returns a new instance of Checkpoint.
5 6 7 8 9 10 |
# File 'lib/deliveries/checkpoint.rb', line 5 def initialize(status: nil, location: nil, tracked_at: nil, description: nil) self.status = status self.location = location self.tracked_at = tracked_at self.description = description end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'lib/deliveries/checkpoint.rb', line 3 def description @description end |
#location ⇒ Object
Returns the value of attribute location.
3 4 5 |
# File 'lib/deliveries/checkpoint.rb', line 3 def location @location end |
#status ⇒ Object
Returns the value of attribute status.
3 4 5 |
# File 'lib/deliveries/checkpoint.rb', line 3 def status @status end |
#tracked_at ⇒ Object
Returns the value of attribute tracked_at.
3 4 5 |
# File 'lib/deliveries/checkpoint.rb', line 3 def tracked_at @tracked_at end |