Class: GemContribute::Auth::Result
- Inherits:
-
Data
- Object
- Data
- GemContribute::Auth::Result
- Defined in:
- lib/gem_contribute/auth.rb
Overview
Result of one polling step.
status:
:ok — token attached
:pending — user hasn't completed yet; poll again at the same interval
:slow_down — user hasn't completed yet; back off (caller bumps interval)
:expired — device code is past its 15-minute window
:denied — user actively rejected
:error — anything else; error_message attached
Instance Attribute Summary collapse
-
#error_message ⇒ Object
readonly
Returns the value of attribute error_message.
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Attribute Details
#error_message ⇒ Object (readonly)
Returns the value of attribute error_message
57 58 59 |
# File 'lib/gem_contribute/auth.rb', line 57 def @error_message end |
#scope ⇒ Object (readonly)
Returns the value of attribute scope
57 58 59 |
# File 'lib/gem_contribute/auth.rb', line 57 def scope @scope end |
#status ⇒ Object (readonly)
Returns the value of attribute status
57 58 59 |
# File 'lib/gem_contribute/auth.rb', line 57 def status @status end |
#token ⇒ Object (readonly)
Returns the value of attribute token
57 58 59 |
# File 'lib/gem_contribute/auth.rb', line 57 def token @token end |