Class: Moov::Models::Operations::GetPublicImageResponse
- Inherits:
-
Object
- Object
- Moov::Models::Operations::GetPublicImageResponse
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/operations/getpublicimage_response.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(content_type:, status_code:, raw_response:, headers:, two_hundred_image_webp_bytes: nil, two_hundred_image_png_bytes: nil, two_hundred_image_jpeg_bytes: nil) ⇒ GetPublicImageResponse
constructor
A new instance of GetPublicImageResponse.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(content_type:, status_code:, raw_response:, headers:, two_hundred_image_webp_bytes: nil, two_hundred_image_png_bytes: nil, two_hundred_image_jpeg_bytes: nil) ⇒ GetPublicImageResponse
Returns a new instance of GetPublicImageResponse.
31 32 33 34 35 36 37 38 39 |
# File 'lib/moov/models/operations/getpublicimage_response.rb', line 31 def initialize(content_type:, status_code:, raw_response:, headers:, two_hundred_image_webp_bytes: nil, two_hundred_image_png_bytes: nil, two_hundred_image_jpeg_bytes: nil) @content_type = content_type @status_code = status_code @raw_response = raw_response @headers = headers @two_hundred_image_webp_bytes = two_hundred_image_webp_bytes @two_hundred_image_png_bytes = two_hundred_image_png_bytes @two_hundred_image_jpeg_bytes = two_hundred_image_jpeg_bytes end |
Instance Method Details
#==(other) ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/moov/models/operations/getpublicimage_response.rb', line 42 def ==(other) return false unless other.is_a? self.class return false unless @content_type == other.content_type return false unless @status_code == other.status_code return false unless @raw_response == other.raw_response return false unless @headers == other.headers return false unless @two_hundred_image_webp_bytes == other.two_hundred_image_webp_bytes return false unless @two_hundred_image_png_bytes == other.two_hundred_image_png_bytes return false unless @two_hundred_image_jpeg_bytes == other.two_hundred_image_jpeg_bytes true end |