Class: Moov::Models::Operations::GetPublicImageRequest

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(public_id:, if_none_match: nil, size: '400x400') ⇒ GetPublicImageRequest

Returns a new instance of GetPublicImageRequest.



27
28
29
30
31
# File 'lib/moov/models/operations/getpublicimage_request.rb', line 27

def initialize(public_id:, if_none_match: nil, size: '400x400')
  @public_id = public_id
  @if_none_match = if_none_match
  @size = size
end

Instance Method Details

#==(other) ⇒ Object



34
35
36
37
38
39
40
# File 'lib/moov/models/operations/getpublicimage_request.rb', line 34

def ==(other)
  return false unless other.is_a? self.class
  return false unless @public_id == other.public_id
  return false unless @if_none_match == other.if_none_match
  return false unless @size == other.size
  true
end