Class: AocCli::Commands::CalendarTable
- Inherits:
-
Object
- Object
- AocCli::Commands::CalendarTable
- Defined in:
- lib/aoc_cli/commands.rb
Instance Attribute Summary collapse
-
#user ⇒ Object
readonly
Returns the value of attribute user.
-
#year ⇒ Object
readonly
Returns the value of attribute year.
Instance Method Summary collapse
- #defaults ⇒ Object
- #exec ⇒ Object
-
#initialize(args) ⇒ CalendarTable
constructor
A new instance of CalendarTable.
Constructor Details
#initialize(args) ⇒ CalendarTable
Returns a new instance of CalendarTable.
187 188 189 190 191 |
# 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 |
Instance Attribute Details
#user ⇒ Object (readonly)
Returns the value of attribute user.
186 187 188 |
# File 'lib/aoc_cli/commands.rb', line 186 def user @user end |
#year ⇒ Object (readonly)
Returns the value of attribute year.
186 187 188 |
# File 'lib/aoc_cli/commands.rb', line 186 def year @year end |