Class: Flickr::Photos::Note

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

Overview

wrapping class to hold a flickr note

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#authorObject

Returns the value of attribute author.



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

def author
  @author
end

#author_nameObject

Returns the value of attribute author_name.



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

def author_name
  @author_name
end

#heightObject

Returns the value of attribute height.



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

def height
  @height
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#noteObject

Returns the value of attribute note.



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

def note
  @note
end

#widthObject

Returns the value of attribute width.



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

def width
  @width
end

#xObject

Returns the value of attribute x.



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

def x
  @x
end

#yObject

Returns the value of attribute y.



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

def y
  @y
end