Class: AudioVision::Asset::Size
- Inherits:
-
Object
- Object
- AudioVision::Asset::Size
- Defined in:
- lib/audio_vision/asset.rb
Instance Attribute Summary collapse
-
#height ⇒ Object
Returns the value of attribute height.
-
#url ⇒ Object
Returns the value of attribute url.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Size
constructor
A new instance of Size.
Constructor Details
#initialize(attributes = {}) ⇒ Size
Returns a new instance of Size.
7 8 9 10 11 |
# File 'lib/audio_vision/asset.rb', line 7 def initialize(attributes={}) @width = attributes['width'] @height = attributes['height'] @url = attributes['url'] end |
Instance Attribute Details
#height ⇒ Object
Returns the value of attribute height.
5 6 7 |
# File 'lib/audio_vision/asset.rb', line 5 def height @height end |
#url ⇒ Object
Returns the value of attribute url.
5 6 7 |
# File 'lib/audio_vision/asset.rb', line 5 def url @url end |
#width ⇒ Object
Returns the value of attribute width.
5 6 7 |
# File 'lib/audio_vision/asset.rb', line 5 def width @width end |