Class: Clonk::Realm
- Inherits:
-
Object
- Object
- Clonk::Realm
- Defined in:
- lib/clonk/realm.rb
Overview
Represents a realm within SSO.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize(realm_response) ⇒ Realm
constructor
A new instance of Realm.
Constructor Details
#initialize(realm_response) ⇒ Realm
Returns a new instance of Realm.
8 9 10 |
# File 'lib/clonk/realm.rb', line 8 def initialize(realm_response) @name = realm_response['realm'] || realm_response['id'] end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/clonk/realm.rb', line 6 def name @name end |
Instance Method Details
#id ⇒ Object
12 13 14 |
# File 'lib/clonk/realm.rb', line 12 def id name end |