Class: Flickr::Photos::Comment
Overview
wrapping class to hold a flickr comment
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#author_name ⇒ Object
Returns the value of attribute author_name.
-
#comment ⇒ Object
Returns the value of attribute comment.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#permalink ⇒ Object
Returns the value of attribute permalink.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Comment
constructor
create a new instance of a flickr comment.
Constructor Details
#initialize(attributes) ⇒ Comment
create a new instance of a flickr comment.
Params
-
attributes (Required)
a hash of attributes used to set the initial values of the comment object
11 12 13 14 15 |
# File 'lib/flickr/comment.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/comment.rb', line 4 def @author end |
#author_name ⇒ Object
Returns the value of attribute author_name.
4 5 6 |
# File 'lib/flickr/comment.rb', line 4 def @author_name end |
#comment ⇒ Object
Returns the value of attribute comment.
4 5 6 |
# File 'lib/flickr/comment.rb', line 4 def comment @comment end |
#created_at ⇒ Object
Returns the value of attribute created_at.
4 5 6 |
# File 'lib/flickr/comment.rb', line 4 def created_at @created_at end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/flickr/comment.rb', line 4 def id @id end |
#permalink ⇒ Object
Returns the value of attribute permalink.
4 5 6 |
# File 'lib/flickr/comment.rb', line 4 def permalink @permalink end |