Class: FastpixClient::Models::Components::PlaylistByIdResponseMediaListItem

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(created_at: nil, duration: nil, id: nil, source_resolution: nil, status: nil, thumbnail: nil, creator_id: nil, title: nil) ⇒ PlaylistByIdResponseMediaListItem

Returns a new instance of PlaylistByIdResponseMediaListItem.



33
34
35
36
37
38
39
40
41
42
# File 'lib/fastpix_client/models/components/playlistbyidresponsemedialistitem.rb', line 33

def initialize(created_at: nil, duration: nil, id: nil, source_resolution: nil, status: nil, thumbnail: nil, creator_id: nil, title: nil)
  @created_at = created_at
  @duration = duration
  @id = id
  @source_resolution = source_resolution
  @status = status
  @thumbnail = thumbnail
  @creator_id = creator_id
  @title = title
end

Instance Method Details

#==(other) ⇒ Object



45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/fastpix_client/models/components/playlistbyidresponsemedialistitem.rb', line 45

def ==(other)
  return false unless other.is_a? self.class
  return false unless @created_at == other.created_at
  return false unless @duration == other.duration
  return false unless @id == other.id
  return false unless @source_resolution == other.source_resolution
  return false unless @status == other.status
  return false unless @thumbnail == other.thumbnail
  return false unless @creator_id == other.creator_id
  return false unless @title == other.title
  true
end