Class: Ebisu::ExImage

Inherits:
Object
  • Object
show all
Defined in:
lib/ebisu/models/ex_image.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(image) ⇒ ExImage

Returns a new instance of ExImage.



15
16
17
18
19
20
21
# File 'lib/ebisu/models/ex_image.rb', line 15

def initialize(image)
  return unless image

  @url = image.dig('Url')
  @width = image.dig('Width')
  @height = image.dig('Height')
end

Instance Attribute Details

#heightObject

Returns the value of attribute height.



13
14
15
# File 'lib/ebisu/models/ex_image.rb', line 13

def height
  @height
end

#urlObject

Returns the value of attribute url.



5
6
7
# File 'lib/ebisu/models/ex_image.rb', line 5

def url
  @url
end

#widthObject

Returns the value of attribute width.



9
10
11
# File 'lib/ebisu/models/ex_image.rb', line 9

def width
  @width
end