Class: Ebisu::ExImage
- Inherits:
-
Object
- Object
- Ebisu::ExImage
- Defined in:
- lib/ebisu/models/ex_image.rb
Instance Attribute Summary collapse
-
#height ⇒ Object
Returns the value of attribute height.
-
#url ⇒ Object
Returns the value of attribute url.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(image) ⇒ ExImage
constructor
A new instance of ExImage.
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
#height ⇒ Object
Returns the value of attribute height.
13 14 15 |
# File 'lib/ebisu/models/ex_image.rb', line 13 def height @height end |
#url ⇒ Object
Returns the value of attribute url.
5 6 7 |
# File 'lib/ebisu/models/ex_image.rb', line 5 def url @url end |
#width ⇒ Object
Returns the value of attribute width.
9 10 11 |
# File 'lib/ebisu/models/ex_image.rb', line 9 def width @width end |