Class: Mash

Inherits:
Hashie::Mash
  • Object
show all
Defined in:
lib/indix.rb

Instance Method Summary collapse

Instance Method Details

#convert_key(key) ⇒ Object

rubify keys



26
27
28
# File 'lib/indix.rb', line 26

def convert_key(key)
  key.to_s.underscore
end

#countObject



30
31
32
33
34
35
36
# File 'lib/indix.rb', line 30

def count
  if self['count']
    self['count']
  else
    super
  end
end