Class: FastpixClient::Models::Components::PlaylistItem

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(id: nil, name: nil, type: nil, reference_id: nil, created_at: nil, media_count: nil) ⇒ PlaylistItem

Returns a new instance of PlaylistItem.



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

def initialize(id: nil, name: nil, type: nil, reference_id: nil, created_at: nil, media_count: nil)
  @id = id
  @name = name
  @type = type
  @reference_id = reference_id
  @created_at = created_at
  @media_count = media_count
end

Instance Method Details

#==(other) ⇒ Object



39
40
41
42
43
44
45
46
47
48
# File 'lib/fastpix_client/models/components/playlistitem.rb', line 39

def ==(other)
  return false unless other.is_a? self.class
  return false unless @id == other.id
  return false unless @name == other.name
  return false unless @type == other.type
  return false unless @reference_id == other.reference_id
  return false unless @created_at == other.created_at
  return false unless @media_count == other.media_count
  true
end