Class: Toolchest::AuthContext
- Inherits:
-
Object
- Object
- Toolchest::AuthContext
- Defined in:
- lib/toolchest/auth_context.rb
Instance Attribute Summary collapse
-
#resource_owner ⇒ Object
readonly
Returns the value of attribute resource_owner.
-
#scopes ⇒ Object
readonly
Returns the value of attribute scopes.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(resource_owner:, scopes:, token:) ⇒ AuthContext
constructor
A new instance of AuthContext.
- #scopes_array ⇒ Object
Constructor Details
#initialize(resource_owner:, scopes:, token:) ⇒ AuthContext
Returns a new instance of AuthContext.
5 6 7 8 9 |
# File 'lib/toolchest/auth_context.rb', line 5 def initialize(resource_owner:, scopes:, token:) @resource_owner = resource_owner @scopes = scopes @token = token end |
Instance Attribute Details
#resource_owner ⇒ Object (readonly)
Returns the value of attribute resource_owner.
3 4 5 |
# File 'lib/toolchest/auth_context.rb', line 3 def resource_owner @resource_owner end |
#scopes ⇒ Object (readonly)
Returns the value of attribute scopes.
3 4 5 |
# File 'lib/toolchest/auth_context.rb', line 3 def scopes @scopes end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
3 4 5 |
# File 'lib/toolchest/auth_context.rb', line 3 def token @token end |
Instance Method Details
#scopes_array ⇒ Object
11 |
# File 'lib/toolchest/auth_context.rb', line 11 def scopes_array = @scopes |