Class: Echelon::Ride
- Inherits:
-
Object
- Object
- Echelon::Ride
- Defined in:
- lib/echelon/ride.rb
Instance Attribute Summary collapse
-
#active ⇒ Object
readonly
Returns the value of attribute active.
-
#meta ⇒ Object
readonly
Returns the value of attribute meta.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#queue_time ⇒ Object
readonly
Returns the value of attribute queue_time.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
Instance Method Summary collapse
-
#initialize(*params) ⇒ Ride
constructor
A new instance of Ride.
Constructor Details
#initialize(*params) ⇒ Ride
Returns a new instance of Ride.
5 6 7 8 9 |
# File 'lib/echelon/ride.rb', line 5 def initialize(*params) params.each do |key| key.each { |k, v| instance_variable_set("@#{k}", v) } end end |
Instance Attribute Details
#active ⇒ Object (readonly)
Returns the value of attribute active.
3 4 5 |
# File 'lib/echelon/ride.rb', line 3 def active @active end |
#meta ⇒ Object (readonly)
Returns the value of attribute meta.
3 4 5 |
# File 'lib/echelon/ride.rb', line 3 def end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/echelon/ride.rb', line 3 def name @name end |
#queue_time ⇒ Object (readonly)
Returns the value of attribute queue_time.
3 4 5 |
# File 'lib/echelon/ride.rb', line 3 def queue_time @queue_time end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
3 4 5 |
# File 'lib/echelon/ride.rb', line 3 def updated_at @updated_at end |