Class: CldProvisioning::Models::Shared::BillingUsageResponse

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(plan_name: nil, metric_usage: nil) ⇒ BillingUsageResponse

Returns a new instance of BillingUsageResponse.



31
32
33
34
# File 'lib/cld_provisioning/models/shared/billingusageresponse.rb', line 31

def initialize(plan_name: nil, metric_usage: nil)
  @plan_name = plan_name
  @metric_usage = metric_usage
end

Instance Method Details

#==(other) ⇒ Object



37
38
39
40
41
42
# File 'lib/cld_provisioning/models/shared/billingusageresponse.rb', line 37

def ==(other)
  return false unless other.is_a?(self.class)
  return false unless @plan_name == other.plan_name
  return false unless @metric_usage == other.metric_usage
  true
end