class AocCli::Commands::AttemptsTable

Attributes

day[R]
part[R]
user[R]
year[R]

Public Class Methods

new(args) click to toggle source
# File lib/aoc_cli/commands.rb, line 148
def initialize(args)
        args = defaults.merge(args).compact
        @user = args[:user]
        @year = args[:year]
        @day  = args[:day]
        @part = args[:part]
end

Public Instance Methods

defaults() click to toggle source
# File lib/aoc_cli/commands.rb, line 159
def defaults
        {user:Metafile.get(:user),
         year:Metafile.get(:year),
          day:Metafile.get(:day),
         part:Metafile.get(:part)}
end
exec() click to toggle source
# File lib/aoc_cli/commands.rb, line 155
def exec
        Tables::Attempts.new(u:user, y:year, d:day, p:part).print
        self
end