Class: NHK::Easy::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/nhk-easy-ruby.rb

Instance Method Summary collapse

Constructor Details

#initialize(data = {}) ⇒ Parser

Returns a new instance of Parser.



87
88
89
# File 'lib/nhk-easy-ruby.rb', line 87

def initialize data={}
  @data = data
end

Instance Method Details

#parse!Object



91
92
93
# File 'lib/nhk-easy-ruby.rb', line 91

def parse!
  JSON.parse @data
end