Class: CldProvisioning::Models::Shared::BillingUsageResponseBreakdown
- Inherits:
-
Object
- Object
- CldProvisioning::Models::Shared::BillingUsageResponseBreakdown
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/cld_provisioning/models/shared/billingusageresponse_breakdown.rb
Overview
Usage breakdown by asset type and operation for the monthly cycle.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(storage_image: nil, storage_video: nil, storage_raw: nil, transformations_image: nil, transformations_video: nil, bandwidth_image: nil, bandwidth_video: nil, bandwidth_raw: nil, image_impressions: nil, video_seconds: nil) ⇒ BillingUsageResponseBreakdown
constructor
A new instance of BillingUsageResponseBreakdown.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(storage_image: nil, storage_video: nil, storage_raw: nil, transformations_image: nil, transformations_video: nil, bandwidth_image: nil, bandwidth_video: nil, bandwidth_raw: nil, image_impressions: nil, video_seconds: nil) ⇒ BillingUsageResponseBreakdown
Returns a new instance of BillingUsageResponseBreakdown.
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 |
# File 'lib/cld_provisioning/models/shared/billingusageresponse_breakdown.rb', line 91 def initialize( storage_image: nil, storage_video: nil, storage_raw: nil, transformations_image: nil, transformations_video: nil, bandwidth_image: nil, bandwidth_video: nil, bandwidth_raw: nil, image_impressions: nil, video_seconds: nil ) @storage_image = storage_image @storage_video = storage_video @storage_raw = storage_raw @transformations_image = transformations_image @transformations_video = transformations_video @bandwidth_image = bandwidth_image @bandwidth_video = bandwidth_video @bandwidth_raw = bandwidth_raw @image_impressions = image_impressions @video_seconds = video_seconds end |
Instance Method Details
#==(other) ⇒ Object
116 117 118 119 120 121 122 123 124 125 126 127 128 129 |
# File 'lib/cld_provisioning/models/shared/billingusageresponse_breakdown.rb', line 116 def ==(other) return false unless other.is_a?(self.class) return false unless @storage_image == other.storage_image return false unless @storage_video == other.storage_video return false unless @storage_raw == other.storage_raw return false unless @transformations_image == other.transformations_image return false unless @transformations_video == other.transformations_video return false unless @bandwidth_image == other.bandwidth_image return false unless @bandwidth_video == other.bandwidth_video return false unless @bandwidth_raw == other.bandwidth_raw return false unless @image_impressions == other.image_impressions return false unless @video_seconds == other.video_seconds true end |