Class: Discogs::Image
- Inherits:
-
Object
- Object
- Discogs::Image
- Defined in:
- lib/image.rb
Instance Attribute Summary collapse
-
#height ⇒ Object
Returns the value of attribute height.
-
#type ⇒ Object
Returns the value of attribute type.
-
#uri ⇒ Object
Returns the value of attribute uri.
-
#uri150 ⇒ Object
Returns the value of attribute uri150.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(uri, type, uri150, width, height) ⇒ Image
constructor
A new instance of Image.
-
#to_s ⇒ Object
:nodoc:.
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
#height ⇒ Object
Returns the value of attribute height.
4 5 6 |
# File 'lib/image.rb', line 4 def height @height end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/image.rb', line 4 def type @type end |
#uri ⇒ Object
Returns the value of attribute uri.
4 5 6 |
# File 'lib/image.rb', line 4 def uri @uri end |
#uri150 ⇒ Object
Returns the value of attribute uri150.
4 5 6 |
# File 'lib/image.rb', line 4 def uri150 @uri150 end |
#width ⇒ Object
Returns the value of attribute width.
4 5 6 |
# File 'lib/image.rb', line 4 def width @width end |
Instance Method Details
#to_s ⇒ Object
:nodoc:
18 19 20 |
# File 'lib/image.rb', line 18 def to_s #:nodoc: uri end |