Module: AdHocTemplate::RecordReader::JSONReader
- Defined in:
- lib/ad_hoc_template/record_reader.rb
Class Method Summary collapse
Class Method Details
.read_record(json_data) ⇒ Object
21 22 23 |
# File 'lib/ad_hoc_template/record_reader.rb', line 21 def self.read_record(json_data) JSON.parse(json_data) end |
.to_json(config_data) ⇒ Object
25 26 27 28 |
# File 'lib/ad_hoc_template/record_reader.rb', line 25 def self.to_json(config_data) data = RecordReader.read_record(config_data) JSON.dump(data) end |