Class: Ebisu::Image
- Inherits:
-
Object
- Object
- Ebisu::Image
- Defined in:
- lib/ebisu/models/image.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#medium ⇒ Object
Returns the value of attribute medium.
-
#small ⇒ Object
Returns the value of attribute small.
Instance Method Summary collapse
-
#initialize(data) ⇒ Image
constructor
A new instance of Image.
Constructor Details
#initialize(data) ⇒ Image
Returns a new instance of Image.
15 16 17 18 19 |
# File 'lib/ebisu/models/image.rb', line 15 def initialize(data) @id = data["Id"] @small = data["Small"] @medium = data["Medium"] end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/ebisu/models/image.rb', line 5 def id @id end |
#medium ⇒ Object
Returns the value of attribute medium.
13 14 15 |
# File 'lib/ebisu/models/image.rb', line 13 def medium @medium end |
#small ⇒ Object
Returns the value of attribute small.
9 10 11 |
# File 'lib/ebisu/models/image.rb', line 9 def small @small end |