Class: PrxAuth::ScopeList::Entry
- Inherits:
-
Struct
- Object
- Struct
- PrxAuth::ScopeList::Entry
- Defined in:
- lib/prx_auth/scope_list.rb,
lib/prx_auth/scope_list.rb
Instance Attribute Summary collapse
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#scope ⇒ Object
Returns the value of attribute scope.
-
#string ⇒ Object
Returns the value of attribute string.
Instance Method Summary collapse
Instance Attribute Details
#namespace ⇒ Object
Returns the value of attribute namespace
7 8 9 |
# File 'lib/prx_auth/scope_list.rb', line 7 def namespace @namespace end |
#scope ⇒ Object
Returns the value of attribute scope
7 8 9 |
# File 'lib/prx_auth/scope_list.rb', line 7 def scope @scope end |
#string ⇒ Object
Returns the value of attribute string
7 8 9 |
# File 'lib/prx_auth/scope_list.rb', line 7 def string @string end |
Instance Method Details
#==(other) ⇒ Object
10 11 12 |
# File 'lib/prx_auth/scope_list.rb', line 10 def ==(other) namespace == other.namespace && scope == other.scope end |
#inspect ⇒ Object
30 31 32 |
# File 'lib/prx_auth/scope_list.rb', line 30 def inspect "#<ScopeList::Entry \"#{self}\">" end |
#namespaced? ⇒ Boolean
18 19 20 |
# File 'lib/prx_auth/scope_list.rb', line 18 def namespaced? !(namespace.nil? || namespace == NO_NAMESPACE) end |
#to_s ⇒ Object
14 15 16 |
# File 'lib/prx_auth/scope_list.rb', line 14 def to_s string end |
#unnamespaced ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/prx_auth/scope_list.rb', line 22 def unnamespaced if namespaced? Entry.new(NO_NAMESPACE, scope, string.split(":").last) else self end end |