Class: Moov::Models::Components::ImageMetadata

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

Overview

Metadata about an uploaded image.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(image_id:, public_id:, link:, created_on:, updated_on:, alt_text: nil, disabled_on: nil) ⇒ ImageMetadata

Returns a new instance of ImageMetadata.



32
33
34
35
36
37
38
39
40
# File 'lib/moov/models/components/imagemetadata.rb', line 32

def initialize(image_id:, public_id:, link:, created_on:, updated_on:, alt_text: nil, disabled_on: nil)
  @image_id = image_id
  @public_id = public_id
  @link = link
  @created_on = created_on
  @updated_on = updated_on
  @alt_text = alt_text
  @disabled_on = disabled_on
end

Instance Method Details

#==(other) ⇒ Object



43
44
45
46
47
48
49
50
51
52
53
# File 'lib/moov/models/components/imagemetadata.rb', line 43

def ==(other)
  return false unless other.is_a? self.class
  return false unless @image_id == other.image_id
  return false unless @public_id == other.public_id
  return false unless @link == other.link
  return false unless @created_on == other.created_on
  return false unless @updated_on == other.updated_on
  return false unless @alt_text == other.alt_text
  return false unless @disabled_on == other.disabled_on
  true
end