Class: Rosetta::Deserializers::JSON

Inherits:
Base
  • Object
show all
Defined in:
lib/rosetta/deserializers/json.rb

Instance Attribute Summary

Attributes inherited from Base

#input

Instance Method Summary collapse

Methods inherited from Base

call, deserialize, inherited, #initialize, to_proc, #to_proc

Constructor Details

This class inherits a constructor from Rosetta::Deserializers::Base

Instance Method Details

#callObject



10
11
12
13
# File 'lib/rosetta/deserializers/json.rb', line 10

def call
  validate_input!
  input.map { |obj| Element.new(obj) }
end