Class: PlexRubySDK::Models::Operations::GetResizedPhotoRequest

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(blur: nil, height: nil, min_size: nil, opacity: nil, upscale: nil, url: nil, width: nil) ⇒ GetResizedPhotoRequest

Returns a new instance of GetResizedPhotoRequest.



33
34
35
36
37
38
39
40
41
# File 'lib/plex_ruby_sdk/models/operations/getresizedphoto_request.rb', line 33

def initialize(blur: nil, height: nil, min_size: nil, opacity: nil, upscale: nil, url: nil, width: nil)
  @blur = blur
  @height = height
  @min_size = min_size
  @opacity = opacity
  @upscale = upscale
  @url = url
  @width = width
end

Instance Method Details

#==(other) ⇒ Object



43
44
45
46
47
48
49
50
51
52
53
# File 'lib/plex_ruby_sdk/models/operations/getresizedphoto_request.rb', line 43

def ==(other)
  return false unless other.is_a? self.class
  return false unless @blur == other.blur
  return false unless @height == other.height
  return false unless @min_size == other.min_size
  return false unless @opacity == other.opacity
  return false unless @upscale == other.upscale
  return false unless @url == other.url
  return false unless @width == other.width
  true
end