Class: FastpixClient::Models::Components::ViewsList

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(view_id: nil, operating_system: nil, application: nil, view_start_time: nil, view_end_time: nil, video_title: nil, error_code: nil, error_message: nil, error_id: nil, country: nil, view_watch_time: nil, qoe_score: nil) ⇒ ViewsList

Returns a new instance of ViewsList.



53
54
55
56
57
58
59
60
61
62
63
64
65
66
# File 'lib/fastpix_client/models/components/viewslist.rb', line 53

def initialize(view_id: nil, operating_system: nil, application: nil, view_start_time: nil, view_end_time: nil, video_title: nil, error_code: nil, error_message: nil, error_id: nil, country: nil, view_watch_time: nil, qoe_score: nil)
  @view_id = view_id
  @operating_system = operating_system
  @application = application
  @view_start_time = view_start_time
  @view_end_time = view_end_time
  @video_title = video_title
  @error_code = error_code
  @error_message = error_message
  @error_id = error_id
  @country = country
  @view_watch_time = view_watch_time
  @qoe_score = qoe_score
end

Instance Method Details

#==(other) ⇒ Object



69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# File 'lib/fastpix_client/models/components/viewslist.rb', line 69

def ==(other)
  return false unless other.is_a? self.class
  return false unless @view_id == other.view_id
  return false unless @operating_system == other.operating_system
  return false unless @application == other.application
  return false unless @view_start_time == other.view_start_time
  return false unless @view_end_time == other.view_end_time
  return false unless @video_title == other.video_title
  return false unless @error_code == other.error_code
  return false unless @error_message == other.error_message
  return false unless @error_id == other.error_id
  return false unless @country == other.country
  return false unless @view_watch_time == other.view_watch_time
  return false unless @qoe_score == other.qoe_score
  true
end