Class: AocCli::Core::AttemptParser
- Inherits:
-
Object
- Object
- AocCli::Core::AttemptParser
- Defined in:
- lib/aoc_cli/core/attempt_parser.rb
Defined Under Namespace
Modules: Hints, Prefixes, WaitTimes
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ AttemptParser
constructor
A new instance of AttemptParser.
- #to_h ⇒ Object
Constructor Details
#initialize(response) ⇒ AttemptParser
Returns a new instance of AttemptParser.
6 7 8 |
# File 'lib/aoc_cli/core/attempt_parser.rb', line 6 def initialize(response) @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
4 5 6 |
# File 'lib/aoc_cli/core/attempt_parser.rb', line 4 def response @response end |
Instance Method Details
#to_h ⇒ Object
10 11 12 |
# File 'lib/aoc_cli/core/attempt_parser.rb', line 10 def to_h { status:, hint:, wait_time: }.compact end |