Class: CheckoutRu::Entity
- Inherits:
-
Hashie::Trash
- Object
- Hashie::Trash
- CheckoutRu::Entity
- Includes:
- Hashie::Extensions::Coercion
- Defined in:
- lib/checkout_ru/entity.rb
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( = {}) hash = self.to_hash CheckoutRu.camelize_keys!(hash) MultiJson.dump(hash, .merge(:pretty => true)) end |