class AocCli::Commands::CalendarTable

Attributes

user[R]
year[R]

Public Class Methods

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

Public Instance Methods

defaults() click to toggle source
# File lib/aoc_cli/commands.rb, line 195
def defaults
        { user:Metafile.get(:user),
          year:Metafile.get(:year) }
end
exec() click to toggle source
# File lib/aoc_cli/commands.rb, line 192
def exec
        Tables::Calendar.new(u:user, y:year).print
end