Class: Toolchest::AuthContext

Inherits:
Object
  • Object
show all
Defined in:
lib/toolchest/auth_context.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_ownerObject (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

#scopesObject (readonly)

Returns the value of attribute scopes.



3
4
5
# File 'lib/toolchest/auth_context.rb', line 3

def scopes
  @scopes
end

#tokenObject (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_arrayObject



11
# File 'lib/toolchest/auth_context.rb', line 11

def scopes_array = @scopes