Class: Camille::ObjectHash

Inherits:
Hash
  • Object
show all
Defined in:
lib/camille/object_hash.rb

Instance Method Summary collapse

Instance Method Details

#to_json(options = nil) ⇒ Object



3
4
5
# File 'lib/camille/object_hash.rb', line 3

def to_json options = nil
  JSON.dump(transform_keys{|k, _| Camille::KeyConverter.convert_response_key(k)})
end