Class: Bcome::Driver::Gcp::Authentication::OauthClientConfig
- Inherits:
-
Object
- Object
- Bcome::Driver::Gcp::Authentication::OauthClientConfig
- Defined in:
- lib/objects/driver/gcp/authentication/oauth_client_config.rb
Instance Attribute Summary collapse
-
#scopes ⇒ Object
readonly
Returns the value of attribute scopes.
-
#secrets_filename ⇒ Object
readonly
Returns the value of attribute secrets_filename.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #checksum ⇒ Object
-
#initialize(scopes, secrets_filename) ⇒ OauthClientConfig
constructor
A new instance of OauthClientConfig.
Constructor Details
#initialize(scopes, secrets_filename) ⇒ OauthClientConfig
Returns a new instance of OauthClientConfig.
9 10 11 12 |
# File 'lib/objects/driver/gcp/authentication/oauth_client_config.rb', line 9 def initialize(scopes, secrets_filename) @scopes = scopes @secrets_filename = secrets_filename end |
Instance Attribute Details
#scopes ⇒ Object (readonly)
Returns the value of attribute scopes.
7 8 9 |
# File 'lib/objects/driver/gcp/authentication/oauth_client_config.rb', line 7 def scopes @scopes end |
#secrets_filename ⇒ Object (readonly)
Returns the value of attribute secrets_filename.
7 8 9 |
# File 'lib/objects/driver/gcp/authentication/oauth_client_config.rb', line 7 def secrets_filename @secrets_filename end |
Instance Method Details
#==(other) ⇒ Object
14 15 16 |
# File 'lib/objects/driver/gcp/authentication/oauth_client_config.rb', line 14 def ==(other) checksum == other.checksum end |
#checksum ⇒ Object
18 19 20 |
# File 'lib/objects/driver/gcp/authentication/oauth_client_config.rb', line 18 def checksum @checksum ||= ::Digest::MD5.hexdigest(Marshal.dump("#{@scopes}-#{@secrets_filename}")) end |