Class: CldProvisioning::Models::Shared::SubAccountSummary
- Inherits:
-
Object
- Object
- CldProvisioning::Models::Shared::SubAccountSummary
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/cld_provisioning/models/shared/subaccountsummary.rb
Overview
Product environment (sub-account) summary.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(id: nil, name: nil, description: nil, cloud_name: nil, enabled: nil) ⇒ SubAccountSummary
constructor
A new instance of SubAccountSummary.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(id: nil, name: nil, description: nil, cloud_name: nil, enabled: nil) ⇒ SubAccountSummary
Returns a new instance of SubAccountSummary.
56 57 58 59 60 61 62 |
# File 'lib/cld_provisioning/models/shared/subaccountsummary.rb', line 56 def initialize(id: nil, name: nil, description: nil, cloud_name: nil, enabled: nil) @id = id @name = name @description = description @cloud_name = cloud_name @enabled = enabled end |
Instance Method Details
#==(other) ⇒ Object
65 66 67 68 69 70 71 72 73 |
# File 'lib/cld_provisioning/models/shared/subaccountsummary.rb', line 65 def ==(other) return false unless other.is_a?(self.class) return false unless @id == other.id return false unless @name == other.name return false unless @description == other.description return false unless @cloud_name == other.cloud_name return false unless @enabled == other.enabled true end |