Class: CldProvisioning::Models::Shared::AccessKey

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/cld_provisioning/models/shared/accesskey.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(name: nil, api_key: nil, api_secret: nil, created_at: nil, updated_at: nil, enabled: nil) ⇒ AccessKey

Returns a new instance of AccessKey.



73
74
75
76
77
78
79
80
# File 'lib/cld_provisioning/models/shared/accesskey.rb', line 73

def initialize(name: nil, api_key: nil, api_secret: nil, created_at: nil, updated_at: nil, enabled: nil)
  @name = name
  @api_key = api_key
  @api_secret = api_secret
  @created_at = created_at
  @updated_at = updated_at
  @enabled = enabled
end

Instance Method Details

#==(other) ⇒ Object



83
84
85
86
87
88
89
90
91
92
# File 'lib/cld_provisioning/models/shared/accesskey.rb', line 83

def ==(other)
  return false unless other.is_a?(self.class)
  return false unless @name == other.name
  return false unless @api_key == other.api_key
  return false unless @api_secret == other.api_secret
  return false unless @created_at == other.created_at
  return false unless @updated_at == other.updated_at
  return false unless @enabled == other.enabled
  true
end