Class: Otter::Count
Instance Attribute Summary
Attributes inherited from Base
#data
Instance Method Summary
collapse
Methods inherited from Base
create, #initialize
Constructor Details
This class inherits a constructor from Otter::Base
Instance Method Details
#all ⇒ Object
20
21
22
|
# File 'lib/otter/count.rb', line 20
def all
Integer(self.data['a'])
end
|
#day ⇒ Object
8
9
10
|
# File 'lib/otter/count.rb', line 8
def day
Integer(self.data['d'])
end
|
#hour ⇒ Object
4
5
6
|
# File 'lib/otter/count.rb', line 4
def hour
Integer(self.data['h'])
end
|
#month ⇒ Object
16
17
18
|
# File 'lib/otter/count.rb', line 16
def month
Integer(self.data['m'])
end
|
#week ⇒ Object
12
13
14
|
# File 'lib/otter/count.rb', line 12
def week
Integer(self.data['w'])
end
|