Class: Aocli::AdventOfCode::Response
- Inherits:
-
Struct
- Object
- Struct
- Aocli::AdventOfCode::Response
- Defined in:
- lib/aocli/advent_of_code/client.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#should_retry ⇒ Object
Returns the value of attribute should_retry.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
6 7 8 |
# File 'lib/aocli/advent_of_code/client.rb', line 6 def body @body end |
#should_retry ⇒ Object
Returns the value of attribute should_retry
6 7 8 |
# File 'lib/aocli/advent_of_code/client.rb', line 6 def should_retry @should_retry end |
#status ⇒ Object
Returns the value of attribute status
6 7 8 |
# File 'lib/aocli/advent_of_code/client.rb', line 6 def status @status end |
Instance Method Details
#ok? ⇒ Boolean
11 12 13 |
# File 'lib/aocli/advent_of_code/client.rb', line 11 def ok? status == 200 end |
#should_retry? ⇒ Boolean
7 8 9 |
# File 'lib/aocli/advent_of_code/client.rb', line 7 def should_retry? self.should_retry end |