Class: Chilexpress::TrackingEntry
- Inherits:
-
Object
- Object
- Chilexpress::TrackingEntry
- Defined in:
- lib/chilexpress/tracking_entry.rb
Instance Attribute Summary collapse
-
#activity ⇒ Object
readonly
Returns the value of attribute activity.
-
#date ⇒ Object
readonly
Returns the value of attribute date.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ TrackingEntry
constructor
A new instance of TrackingEntry.
Constructor Details
#initialize(attributes) ⇒ TrackingEntry
Returns a new instance of TrackingEntry.
5 6 7 8 9 |
# File 'lib/chilexpress/tracking_entry.rb', line 5 def initialize(attributes) @date = attributes[:date] @time = attributes[:time] @activity = attributes[:activity] end |
Instance Attribute Details
#activity ⇒ Object (readonly)
Returns the value of attribute activity.
3 4 5 |
# File 'lib/chilexpress/tracking_entry.rb', line 3 def activity @activity end |
#date ⇒ Object (readonly)
Returns the value of attribute date.
3 4 5 |
# File 'lib/chilexpress/tracking_entry.rb', line 3 def date @date end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
3 4 5 |
# File 'lib/chilexpress/tracking_entry.rb', line 3 def time @time end |