Class: Echelon::Ride

Inherits:
Object
  • Object
show all
Defined in:
lib/echelon/ride.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#activeObject (readonly)

Returns the value of attribute active.



3
4
5
# File 'lib/echelon/ride.rb', line 3

def active
  @active
end

#metaObject (readonly)

Returns the value of attribute meta.



3
4
5
# File 'lib/echelon/ride.rb', line 3

def meta
  @meta
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/echelon/ride.rb', line 3

def name
  @name
end

#queue_timeObject (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_atObject (readonly)

Returns the value of attribute updated_at.



3
4
5
# File 'lib/echelon/ride.rb', line 3

def updated_at
  @updated_at
end