Class: Zemanta::Fetcher::Parser
- Inherits:
-
Object
- Object
- Zemanta::Fetcher::Parser
- Defined in:
- lib/zemanta/fetcher/parser.rb
Instance Method Summary collapse
-
#initialize(json) ⇒ Parser
constructor
A new instance of Parser.
- #parse ⇒ Object
Constructor Details
#initialize(json) ⇒ Parser
Returns a new instance of Parser.
4 5 6 |
# File 'lib/zemanta/fetcher/parser.rb', line 4 def initialize(json) @json = json end |
Instance Method Details
#parse ⇒ Object
8 9 10 |
# File 'lib/zemanta/fetcher/parser.rb', line 8 def parse Yajl::Parser.parse(@json) end |