Class: Lookbook::JsonParser

Inherits:
DataParser show all
Defined in:
lib/lookbook/services/data/parsers/json_parser.rb

Instance Method Summary collapse

Methods inherited from DataParser

#call, #initialize

Methods inherited from Service

call

Constructor Details

This class inherits a constructor from Lookbook::DataParser

Instance Method Details

#parse(input) ⇒ Object



3
4
5
# File 'lib/lookbook/services/data/parsers/json_parser.rb', line 3

def parse(input)
  JSON.parse(input.to_s)
end