Class: ReclaimOidc::Client
- Inherits:
-
Object
- Object
- ReclaimOidc::Client
- Defined in:
- lib/reclaim_oidc.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#redirect_uri ⇒ Object
readonly
Returns the value of attribute redirect_uri.
-
#secret ⇒ Object
readonly
Returns the value of attribute secret.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name, key, secret) ⇒ Client
constructor
A new instance of Client.
- #parse_client_info(obj) ⇒ Object
Constructor Details
#initialize(name, key, secret) ⇒ Client
Returns a new instance of Client.
98 99 100 101 102 |
# File 'lib/reclaim_oidc.rb', line 98 def initialize(name, key, secret) @name = name @key = key @secret = secret end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
97 98 99 |
# File 'lib/reclaim_oidc.rb', line 97 def description @description end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
97 98 99 |
# File 'lib/reclaim_oidc.rb', line 97 def key @key end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
97 98 99 |
# File 'lib/reclaim_oidc.rb', line 97 def name @name end |
#redirect_uri ⇒ Object (readonly)
Returns the value of attribute redirect_uri.
97 98 99 |
# File 'lib/reclaim_oidc.rb', line 97 def redirect_uri @redirect_uri end |
#secret ⇒ Object (readonly)
Returns the value of attribute secret.
97 98 99 |
# File 'lib/reclaim_oidc.rb', line 97 def secret @secret end |
Class Method Details
Instance Method Details
#parse_client_info(obj) ⇒ Object
106 107 108 109 110 111 112 113 114 115 |
# File 'lib/reclaim_oidc.rb', line 106 def parse_client_info(obj) obj.each do |record| if (record['record_type'] == 'RECLAIM_OIDC_CLIENT') @description = record['value'] end if (record['record_type'] == 'RECLAIM_OIDC_REDIRECT') @redirect_uri = record['value'] end end end |