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(id, data) ⇒ Image
constructor
A new instance of Image.
Constructor Details
#initialize(id, data) ⇒ Image
Returns a new instance of Image.
17 18 19 20 21 |
# File 'lib/ebisu/models/image.rb', line 17 def initialize(id, data) @id = id @small = data['small'] @medium = data['medium'] end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/ebisu/models/image.rb', line 7 def id @id end |
#medium ⇒ Object
Returns the value of attribute medium.
15 16 17 |
# File 'lib/ebisu/models/image.rb', line 15 def medium @medium end |
#small ⇒ Object
Returns the value of attribute small.
11 12 13 |
# File 'lib/ebisu/models/image.rb', line 11 def small @small end |