Class: FastpixClient::Models::Components::ViewsByTopContentDetails

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/fastpix_client/models/components/viewsbytopcontentdetails.rb

Overview

Retrieves a list of the top video views

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(video_title: nil, views: nil, unique_views: nil) ⇒ ViewsByTopContentDetails

Returns a new instance of ViewsByTopContentDetails.



23
24
25
26
27
# File 'lib/fastpix_client/models/components/viewsbytopcontentdetails.rb', line 23

def initialize(video_title: nil, views: nil, unique_views: nil)
  @video_title = video_title
  @views = views
  @unique_views = unique_views
end

Instance Method Details

#==(other) ⇒ Object



30
31
32
33
34
35
36
# File 'lib/fastpix_client/models/components/viewsbytopcontentdetails.rb', line 30

def ==(other)
  return false unless other.is_a? self.class
  return false unless @video_title == other.video_title
  return false unless @views == other.views
  return false unless @unique_views == other.unique_views
  true
end