Class: Flickr::Photos::Comment

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

Overview

wrapping class to hold a flickr comment

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#authorObject

Returns the value of attribute author.



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

def author
  @author
end

#author_nameObject

Returns the value of attribute author_name.



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

def author_name
  @author_name
end

#commentObject

Returns the value of attribute comment.



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

def comment
  @comment
end

#created_atObject

Returns the value of attribute created_at.



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

def created_at
  @created_at
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

Returns the value of attribute permalink.



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

def permalink
  @permalink
end