Class: Kokkai::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/kokkai/parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject (readonly)

Returns the value of attribute data.



4
5
6
# File 'lib/kokkai/parser.rb', line 4

def data
  @data
end

#raw_dataObject (readonly)

Returns the value of attribute raw_data.



4
5
6
# File 'lib/kokkai/parser.rb', line 4

def raw_data
  @raw_data
end