Class: CldProvisioning::Models::Shared::CloudAssetTypeBreakdown

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

Instance Method Summary collapse

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, cloud_name: nil) ⇒ CloudAssetTypeBreakdown

Returns a new instance of CloudAssetTypeBreakdown.



98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# File 'lib/cld_provisioning/models/shared/cloudassettypebreakdown.rb', line 98

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,
  cloud_name: 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
  @cloud_name = cloud_name
end

Instance Method Details

#==(other) ⇒ Object



125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# File 'lib/cld_provisioning/models/shared/cloudassettypebreakdown.rb', line 125

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
  return false unless @cloud_name == other.cloud_name
  true
end