Class: AocCli::Year::Requests::Request

Inherits:
Meta
  • Object
show all
Defined in:
lib/aoc_cli/year.rb

Direct Known Subclasses

Calendar, Stats

Instance Attribute Summary collapse

Attributes inherited from Meta

#paths, #user, #year

Instance Method Summary collapse

Methods inherited from Meta

#write

Constructor Details

#initialize(u: Metafile.get(:user), y: Metafile.get(:year)) ⇒ Request

Returns a new instance of Request.



48
49
50
51
52
# File 'lib/aoc_cli/year.rb', line 48

def initialize(u:Metafile.get(:user),
         y:Metafile.get(:year))
  super(u:u, y:y)
  @data = parse(raw: fetch)
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



47
48
49
# File 'lib/aoc_cli/year.rb', line 47

def data
  @data
end