Class: Ebisu::Image

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject

Returns the value of attribute id.



7
8
9
# File 'lib/ebisu/models/image.rb', line 7

def id
  @id
end

#mediumObject

Returns the value of attribute medium.



15
16
17
# File 'lib/ebisu/models/image.rb', line 15

def medium
  @medium
end

#smallObject

Returns the value of attribute small.



11
12
13
# File 'lib/ebisu/models/image.rb', line 11

def small
  @small
end