Class: Deliveries::Checkpoint

Inherits:
Object
  • Object
show all
Defined in:
lib/deliveries/checkpoint.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject

Returns the value of attribute description.



3
4
5
# File 'lib/deliveries/checkpoint.rb', line 3

def description
  @description
end

#locationObject

Returns the value of attribute location.



3
4
5
# File 'lib/deliveries/checkpoint.rb', line 3

def location
  @location
end

#statusObject

Returns the value of attribute status.



3
4
5
# File 'lib/deliveries/checkpoint.rb', line 3

def status
  @status
end

#tracked_atObject

Returns the value of attribute tracked_at.



3
4
5
# File 'lib/deliveries/checkpoint.rb', line 3

def tracked_at
  @tracked_at
end