Module: Representable::JSON::ClassMethods

Defined in:
lib/representable/json.rb

Instance Method Summary collapse

Instance Method Details

#from_hash(*args, &block) ⇒ Object



31
32
33
# File 'lib/representable/json.rb', line 31

def from_hash(*args, &block)
  create_represented(*args, &block).from_hash(*args)
end

#from_json(*args, &block) ⇒ Object

Creates a new object from the passed JSON document.



27
28
29
# File 'lib/representable/json.rb', line 27

def from_json(*args, &block)
  create_represented(*args, &block).from_json(*args)
end