Class: Otter::Count

Inherits:
Base
  • Object
show all
Defined in:
lib/otter/count.rb

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

#allObject



20
21
22
# File 'lib/otter/count.rb', line 20

def all
  Integer(self.data['a'])
end

#dayObject



8
9
10
# File 'lib/otter/count.rb', line 8

def day
  Integer(self.data['d'])
end

#hourObject



4
5
6
# File 'lib/otter/count.rb', line 4

def hour
  Integer(self.data['h'])
end

#monthObject



16
17
18
# File 'lib/otter/count.rb', line 16

def month
  Integer(self.data['m'])
end

#weekObject



12
13
14
# File 'lib/otter/count.rb', line 12

def week
  Integer(self.data['w'])
end