Class: Chilexpress::TrackingEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/chilexpress/tracking_entry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#activityObject (readonly)

Returns the value of attribute activity.



3
4
5
# File 'lib/chilexpress/tracking_entry.rb', line 3

def activity
  @activity
end

#dateObject (readonly)

Returns the value of attribute date.



3
4
5
# File 'lib/chilexpress/tracking_entry.rb', line 3

def date
  @date
end

#timeObject (readonly)

Returns the value of attribute time.



3
4
5
# File 'lib/chilexpress/tracking_entry.rb', line 3

def time
  @time
end