Class: Cliptic::Main::Fetch::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/cliptic/main.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(date: Date.today) ⇒ Parser

Returns a new instance of Parser.



180
181
182
# File 'lib/cliptic/main.rb', line 180

def initialize(date:Date.today)
  @raw = Cache.new(date:date).query
end

Instance Attribute Details

#rawObject (readonly)

Returns the value of attribute raw.



179
180
181
# File 'lib/cliptic/main.rb', line 179

def raw
  @raw
end

Instance Method Details

#parseObject



183
184
185
# File 'lib/cliptic/main.rb', line 183

def parse
  [ parse_clues(raw), parse_size(raw) ]
end