Class: CldProvisioning::Models::Shared::ProductEnvironment
- Inherits:
-
Object
- Object
- CldProvisioning::Models::Shared::ProductEnvironment
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/cld_provisioning/models/shared/productenvironment.rb
Overview
Product Environment
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(cloud_name: nil, name: nil, enabled: nil, id: nil, api_access_keys: nil, created_at: nil, updated_at: nil) ⇒ ProductEnvironment
constructor
A new instance of ProductEnvironment.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(cloud_name: nil, name: nil, enabled: nil, id: nil, api_access_keys: nil, created_at: nil, updated_at: nil) ⇒ ProductEnvironment
Returns a new instance of ProductEnvironment.
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/cld_provisioning/models/shared/productenvironment.rb', line 79 def initialize( cloud_name: nil, name: nil, enabled: nil, id: nil, api_access_keys: nil, created_at: nil, updated_at: nil ) @cloud_name = cloud_name @name = name @enabled = enabled @id = id @api_access_keys = api_access_keys @created_at = created_at @updated_at = updated_at end |
Instance Method Details
#==(other) ⇒ Object
98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/cld_provisioning/models/shared/productenvironment.rb', line 98 def ==(other) return false unless other.is_a?(self.class) return false unless @cloud_name == other.cloud_name return false unless @name == other.name return false unless @enabled == other.enabled return false unless @id == other.id return false unless @api_access_keys == other.api_access_keys return false unless @created_at == other.created_at return false unless @updated_at == other.updated_at true end |