Module: Representable::JSON::ClassMethods

Defined in:
lib/representable/json.rb

Instance Method Summary collapse

Instance Method Details

#from_hash(*args, &block) ⇒ Object



29
30
31
# File 'lib/representable/json.rb', line 29

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

#from_json(*args, &block) ⇒ Object

Creates a new object from the passed JSON document.



25
26
27
# File 'lib/representable/json.rb', line 25

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