Class: StackOne::Models::Shared::IamCredentials
- Inherits:
-
Object
- Object
- StackOne::Models::Shared::IamCredentials
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/stack_one/models/shared/iamcredentials.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(auth_type: nil, last_accessed_at: nil, name: nil, permissions: nil, scopes: nil, user: nil) ⇒ IamCredentials
constructor
A new instance of IamCredentials.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(auth_type: nil, last_accessed_at: nil, name: nil, permissions: nil, scopes: nil, user: nil) ⇒ IamCredentials
Returns a new instance of IamCredentials.
29 30 31 32 33 34 35 36 |
# File 'lib/stack_one/models/shared/iamcredentials.rb', line 29 def initialize(auth_type: nil, last_accessed_at: nil, name: nil, permissions: nil, scopes: nil, user: nil) @auth_type = auth_type @last_accessed_at = last_accessed_at @name = name @permissions = @scopes = scopes @user = user end |
Instance Method Details
#==(other) ⇒ Object
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/stack_one/models/shared/iamcredentials.rb', line 39 def ==(other) return false unless other.is_a? self.class return false unless @auth_type == other.auth_type return false unless @last_accessed_at == other.last_accessed_at return false unless @name == other.name return false unless @permissions == other. return false unless @scopes == other.scopes return false unless @user == other.user true end |