Class: FastpixClient::Models::Components::Metadata

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

Overview

Required when the playlist type is ‘smart`. Media created between `startDate` and `endDate` of `createdDate` is added. Optionally, you can include media based on `updatedDate`.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(created_date: nil, updated_date: nil) ⇒ Metadata

Returns a new instance of Metadata.



21
22
23
24
# File 'lib/fastpix_client/models/components/metadata.rb', line 21

def initialize(created_date: nil, updated_date: nil)
  @created_date = created_date
  @updated_date = updated_date
end

Instance Method Details

#==(other) ⇒ Object



27
28
29
30
31
32
# File 'lib/fastpix_client/models/components/metadata.rb', line 27

def ==(other)
  return false unless other.is_a? self.class
  return false unless @created_date == other.created_date
  return false unless @updated_date == other.updated_date
  true
end