Class: Uber::Partner::StatusChange

Inherits:
Base
  • Object
show all
Defined in:
lib/uber/models/partner/trip.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods inherited from Base

#[], #initialize

Constructor Details

This class inherits a constructor from Uber::Base

Instance Attribute Details

#statusObject

Returns the value of attribute status.



22
23
24
# File 'lib/uber/models/partner/trip.rb', line 22

def status
  @status
end

#timestampObject

Returns the value of attribute timestamp.



22
23
24
# File 'lib/uber/models/partner/trip.rb', line 22

def timestamp
  @timestamp
end

Instance Method Details

#timeObject



24
25
26
# File 'lib/uber/models/partner/trip.rb', line 24

def time
  ::Time.at @timestamp if @timestamp
end