Class: Kokkai::Parser
- Inherits:
-
Object
- Object
- Kokkai::Parser
- Defined in:
- lib/kokkai/parser.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#raw_data ⇒ Object
readonly
Returns the value of attribute raw_data.
Instance Method Summary collapse
-
#initialize(raw_data) ⇒ Parser
constructor
A new instance of Parser.
Constructor Details
#initialize(raw_data) ⇒ Parser
Returns a new instance of Parser.
6 7 8 |
# File 'lib/kokkai/parser.rb', line 6 def initialize(raw_data) @data = Data.new(raw_data.dig("data")) end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
4 5 6 |
# File 'lib/kokkai/parser.rb', line 4 def data @data end |
#raw_data ⇒ Object (readonly)
Returns the value of attribute raw_data.
4 5 6 |
# File 'lib/kokkai/parser.rb', line 4 def raw_data @raw_data end |