class AocCli::Day::Requests::Request
Attributes
data[R]
part[R]
Public Class Methods
new(u:Metafile.get(:user), y:Metafile.get(:year), d:Metafile.get(:day))
click to toggle source
Calls superclass method
AocCli::Day::Init::new
# File lib/aoc_cli/day.rb, line 71 def initialize(u:Metafile.get(:user), y:Metafile.get(:year), d:Metafile.get(:day)) super(u:u, y:y, d:d) @data = parse(raw:fetch) @part = Metafile.part(d:day) end
Public Instance Methods
write(to:)
click to toggle source
# File lib/aoc_cli/day.rb, line 78 def write(to:) to.each{|path| File.write(path, data)}; self end
Private Instance Methods
fetch()
click to toggle source
# File lib/aoc_cli/day.rb, line 82 def fetch Tools::Get.new(u:user, y:year, d:day, p:page) end