Class: NHK::Easy::Parser
- Inherits:
-
Object
- Object
- NHK::Easy::Parser
- Defined in:
- lib/nhk-easy-ruby.rb
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ Parser
constructor
A new instance of Parser.
- #parse! ⇒ Object
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 |