Class: AboutYou::SDK::Model::ImageSize

Inherits:
Object
  • Object
show all
Defined in:
lib/AboutYou/Model/image_size.rb

Overview

This class represents the image size of an image

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(width, height) ⇒ ImageSize

Constructor for the AboutYou::SDK::Model::ImageSize class

  • Returns :

    • an instance of AboutYou::SDK::Model::ImageSize



19
20
21
22
23
24
# File 'lib/AboutYou/Model/image_size.rb', line 19

def initialize(width, height)
  self.width = width
  self.height = height

  self
end

Instance Attribute Details

#heightObject

Integer height



11
12
13
# File 'lib/AboutYou/Model/image_size.rb', line 11

def height
  @height
end

#widthObject

Integer width



9
10
11
# File 'lib/AboutYou/Model/image_size.rb', line 9

def width
  @width
end