Class: OIDCProvider::Scope

Inherits:
Object
  • Object
show all
Defined in:
lib/oidc_provider/scope.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, &block) ⇒ Scope

Returns a new instance of Scope.



5
6
7
8
# File 'lib/oidc_provider/scope.rb', line 5

def initialize(name, &block)
  @name = name
  @work = block
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/oidc_provider/scope.rb', line 3

def name
  @name
end

#workObject

Returns the value of attribute work.



3
4
5
# File 'lib/oidc_provider/scope.rb', line 3

def work
  @work
end