Class: Discogs::Image

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uri, type, uri150, width, height) ⇒ Image

Returns a new instance of Image.



10
11
12
13
14
15
16
# File 'lib/image.rb', line 10

def initialize(uri, type, uri150, width, height)
  @uri = uri
  @type = type
  @uri150 = uri150
  @width = width
  @height = height
end

Instance Attribute Details

#heightObject

Returns the value of attribute height.



4
5
6
# File 'lib/image.rb', line 4

def height
  @height
end

#typeObject

Returns the value of attribute type.



4
5
6
# File 'lib/image.rb', line 4

def type
  @type
end

#uriObject

Returns the value of attribute uri.



4
5
6
# File 'lib/image.rb', line 4

def uri
  @uri
end

#uri150Object

Returns the value of attribute uri150.



4
5
6
# File 'lib/image.rb', line 4

def uri150
  @uri150
end

#widthObject

Returns the value of attribute width.



4
5
6
# File 'lib/image.rb', line 4

def width
  @width
end

Instance Method Details

#to_sObject

:nodoc:



18
19
20
# File 'lib/image.rb', line 18

def to_s #:nodoc:
  uri
end