Module: Representable::JSON::Hash
- Includes:
- HashMethods, Representable::JSON
- Defined in:
- lib/representable/json/hash.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Methods included from HashMethods
#create_representation_with, #representable_attrs, #update_properties_from
Methods included from Representable::JSON
binding_for_definition, #from_hash, #from_json, #to_hash, #to_json
Class Method Details
.included(base) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/representable/json/hash.rb', line 8 def self.included(base) base.class_eval do include Representable extend ClassMethods end end |
Instance Method Details
#definition_opts ⇒ Object
23 24 25 |
# File 'lib/representable/json/hash.rb', line 23 def definition_opts [:_self, {:hash => true, :use_attributes => true}] end |