Class: Flickr::Photos::Size
Overview
wrapping class to hold a flickr size
Instance Attribute Summary collapse
-
#height ⇒ Object
Returns the value of attribute height.
-
#label ⇒ Object
Returns the value of attribute label.
-
#source ⇒ Object
Returns the value of attribute source.
-
#url ⇒ Object
Returns the value of attribute url.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Size
constructor
create a new instance of a flickr size.
Constructor Details
#initialize(attributes) ⇒ Size
create a new instance of a flickr size.
Params
-
attributes (Required)
a hash of attributes used to set the initial values of the size object
11 12 13 14 15 |
# File 'lib/flickr/size.rb', line 11 def initialize(attributes) attributes.each do |k,v| send("#{k}=", v) end end |
Instance Attribute Details
#height ⇒ Object
Returns the value of attribute height.
4 5 6 |
# File 'lib/flickr/size.rb', line 4 def height @height end |
#label ⇒ Object
Returns the value of attribute label.
4 5 6 |
# File 'lib/flickr/size.rb', line 4 def label @label end |
#source ⇒ Object
Returns the value of attribute source.
4 5 6 |
# File 'lib/flickr/size.rb', line 4 def source @source end |
#url ⇒ Object
Returns the value of attribute url.
4 5 6 |
# File 'lib/flickr/size.rb', line 4 def url @url end |
#width ⇒ Object
Returns the value of attribute width.
4 5 6 |
# File 'lib/flickr/size.rb', line 4 def width @width end |