Class: Flickr::Photos::Size

Inherits:
Object show all
Defined in:
lib/flickr/size.rb

Overview

wrapping class to hold a flickr size

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#heightObject

Returns the value of attribute height.



4
5
6
# File 'lib/flickr/size.rb', line 4

def height
  @height
end

#labelObject

Returns the value of attribute label.



4
5
6
# File 'lib/flickr/size.rb', line 4

def label
  @label
end

#sourceObject

Returns the value of attribute source.



4
5
6
# File 'lib/flickr/size.rb', line 4

def source
  @source
end

#urlObject

Returns the value of attribute url.



4
5
6
# File 'lib/flickr/size.rb', line 4

def url
  @url
end

#widthObject

Returns the value of attribute width.



4
5
6
# File 'lib/flickr/size.rb', line 4

def width
  @width
end