Class: GemContribute::Auth::Result

Inherits:
Data
  • Object
show all
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

Instance Attribute Details

#error_messageObject (readonly)

Returns the value of attribute error_message

Returns:

  • (Object)

    the current value of error_message



57
58
59
# File 'lib/gem_contribute/auth.rb', line 57

def error_message
  @error_message
end

#scopeObject (readonly)

Returns the value of attribute scope

Returns:

  • (Object)

    the current value of scope



57
58
59
# File 'lib/gem_contribute/auth.rb', line 57

def scope
  @scope
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



57
58
59
# File 'lib/gem_contribute/auth.rb', line 57

def status
  @status
end

#tokenObject (readonly)

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



57
58
59
# File 'lib/gem_contribute/auth.rb', line 57

def token
  @token
end