Class: Uber::Activity

Inherits:
Base
  • Object
show all
Defined in:
lib/uber/models/activity.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

#countObject

Returns the value of attribute count.



3
4
5
# File 'lib/uber/models/activity.rb', line 3

def count
  @count
end

#historiesObject

Returns the value of attribute histories.



3
4
5
# File 'lib/uber/models/activity.rb', line 3

def histories
  @histories
end

#limitObject

Returns the value of attribute limit.



3
4
5
# File 'lib/uber/models/activity.rb', line 3

def limit
  @limit
end

#offsetObject

Returns the value of attribute offset.



3
4
5
# File 'lib/uber/models/activity.rb', line 3

def offset
  @offset
end

Instance Method Details

#history=(values) ⇒ Object



5
6
7
# File 'lib/uber/models/activity.rb', line 5

def history=(values)
  @histories = values.map { |value| History.new(value) }
end