Class: OauthIm::IdpClient
- Inherits:
-
Object
- Object
- OauthIm::IdpClient
- Defined in:
- app/services/oauth_im/idp_client.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
-
#idp_url ⇒ Object
readonly
Returns the value of attribute idp_url.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(api_key: nil, idp_url: nil) ⇒ IdpClient
constructor
A new instance of IdpClient.
Constructor Details
#initialize(api_key: nil, idp_url: nil) ⇒ IdpClient
Returns a new instance of IdpClient.
17 18 19 20 21 |
# File 'app/services/oauth_im/idp_client.rb', line 17 def initialize(api_key: nil, idp_url: nil) @api_key = api_key || self.class.default_api_key @idp_url = idp_url || self.class.default_idp_url end |
Instance Attribute Details
#api_key ⇒ Object (readonly)
Returns the value of attribute api_key.
7 8 9 |
# File 'app/services/oauth_im/idp_client.rb', line 7 def api_key @api_key end |
#idp_url ⇒ Object (readonly)
Returns the value of attribute idp_url.
7 8 9 |
# File 'app/services/oauth_im/idp_client.rb', line 7 def idp_url @idp_url end |
Class Method Details
.default_api_key ⇒ Object
9 10 11 |
# File 'app/services/oauth_im/idp_client.rb', line 9 def self.default_api_key @default_api_key ||= OauthIm.configuration.api_key end |
.default_idp_url ⇒ Object
13 14 15 |
# File 'app/services/oauth_im/idp_client.rb', line 13 def self.default_idp_url @default_idp_url ||= OauthIm.configuration.idp_url end |