Class: Stockboy::Readers::JSON

Inherits:
Stockboy::Reader show all
Defined in:
lib/stockboy/readers/json.rb

Overview

Parse data from JSON into hashes

Instance Attribute Summary

Attributes inherited from Stockboy::Reader

#encoding

Instance Method Summary collapse

Methods inherited from Stockboy::Reader

#initialize

Constructor Details

This class inherits a constructor from Stockboy::Reader

Instance Method Details

#parse(data) ⇒ Object



11
12
13
# File 'lib/stockboy/readers/json.rb', line 11

def parse(data)
  ::JSON.parse(data)
end