Class: FastpixClient::Models::Components::PlaylistByIdResponseDataSmart

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(type:, play_order:, metadata:, id: nil, name: nil, reference_id: nil, description: nil, media_list: nil, workspace_id: nil, created_at: nil, updated_at: nil, media_count: nil) ⇒ PlaylistByIdResponseDataSmart

Returns a new instance of PlaylistByIdResponseDataSmart.



41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/fastpix_client/models/components/playlistbyidresponsedatasmart.rb', line 41

def initialize(type:, play_order:, metadata:, id: nil, name: nil, reference_id: nil, description: nil, media_list: nil, workspace_id: nil, created_at: nil, updated_at: nil, media_count: nil)
  @type = type
  @play_order = play_order
   = 
  @id = id
  @name = name
  @reference_id = reference_id
  @description = description
  @media_list = media_list
  @workspace_id = workspace_id
  @created_at = created_at
  @updated_at = updated_at
  @media_count = media_count
end

Instance Method Details

#==(other) ⇒ Object



57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/fastpix_client/models/components/playlistbyidresponsedatasmart.rb', line 57

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