Class: AocCli::Year::Requests::Request
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Attributes inherited from Meta
Instance Method Summary collapse
-
#initialize(u: Metafile.get(:user), y: Metafile.get(:year)) ⇒ Request
constructor
A new instance of Request.
Methods inherited from Meta
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
#data ⇒ Object (readonly)
Returns the value of attribute data.
47 48 49 |
# File 'lib/aoc_cli/year.rb', line 47 def data @data end |