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