Class: Spotify::Models::Image
- Inherits:
-
Object
- Object
- Spotify::Models::Image
- Defined in:
- lib/spotify/models/image.rb
Instance Attribute Summary collapse
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Image
constructor
Sets the arguments to its variables.
Constructor Details
#initialize(args = {}) ⇒ Image
Sets the arguments to its variables.
16 17 18 19 20 21 22 |
# File 'lib/spotify/models/image.rb', line 16 def initialize(args = {}) args = Hash(args).with_indifferent_access @height = args[:height] @url = args[:url] @width = args[:width] end |
Instance Attribute Details
#height ⇒ Object (readonly)
Returns the value of attribute height.
7 8 9 |
# File 'lib/spotify/models/image.rb', line 7 def height @height end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
7 8 9 |
# File 'lib/spotify/models/image.rb', line 7 def url @url end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
7 8 9 |
# File 'lib/spotify/models/image.rb', line 7 def width @width end |