Class: Flickr::Size
- Inherits:
-
Object
- Object
- Flickr::Size
- Defined in:
- lib/flickr/base.rb
Instance Attribute Summary collapse
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(label, width, height, source, url) ⇒ Size
constructor
A new instance of Size.
Constructor Details
#initialize(label, width, height, source, url) ⇒ Size
Returns a new instance of Size.
342 343 344 345 346 347 348 |
# File 'lib/flickr/base.rb', line 342 def initialize(label,width,height,source,url) @label = label @width = width @height = height @source = source @url = url end |
Instance Attribute Details
#height ⇒ Object (readonly)
Returns the value of attribute height.
340 341 342 |
# File 'lib/flickr/base.rb', line 340 def height @height end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
340 341 342 |
# File 'lib/flickr/base.rb', line 340 def label @label end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
340 341 342 |
# File 'lib/flickr/base.rb', line 340 def source @source end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
340 341 342 |
# File 'lib/flickr/base.rb', line 340 def url @url end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
340 341 342 |
# File 'lib/flickr/base.rb', line 340 def width @width end |