Class: CrawlStation::ParseStruct

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Concerns::ParserClassConcern
Defined in:
lib/crawl_station/fundation/parse_struct.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ ParseStruct

Returns a new instance of ParseStruct.



13
14
15
16
# File 'lib/crawl_station/fundation/parse_struct.rb', line 13

def initialize(opts = {})
  @parse = opts
  @parse.deep_symbolize_keys!
end

Instance Attribute Details

#parseObject

Returns the value of attribute parse.



6
7
8
# File 'lib/crawl_station/fundation/parse_struct.rb', line 6

def parse
  @parse
end

Instance Method Details

#[](item) ⇒ Object



18
19
20
# File 'lib/crawl_station/fundation/parse_struct.rb', line 18

def [](item)
  get_value(item)
end

#[]=(item, value) ⇒ Object



22
23
24
# File 'lib/crawl_station/fundation/parse_struct.rb', line 22

def []=(item, value)
  set_value(item, value)
end