Class: CheckoutRu::Entity

Inherits:
Hashie::Trash
  • Object
show all
Includes:
Hashie::Extensions::Coercion
Defined in:
lib/checkout_ru/entity.rb

Direct Known Subclasses

Address, Delivery, Item, Order, User

Instance Method Summary collapse

Instance Method Details

#to_json(options = {}) ⇒ Object



8
9
10
11
12
# File 'lib/checkout_ru/entity.rb', line 8

def to_json(options = {})
  hash = self.to_hash
  CheckoutRu.camelize_keys!(hash)
  MultiJson.dump(hash, options.merge(:pretty => true))
end