Class: Flickrie::Comment

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash, api_caller) ⇒ Comment

Returns a new instance of Comment.



30
31
32
33
# File 'lib/flickrie/objects/comment.rb', line 30

def initialize(hash, api_caller)
  @hash = hash
  @api_caller = api_caller
end

Instance Attribute Details

#authorFlickrie::User (readonly)

Returns:



10
11
12
# File 'lib/flickrie/objects/comment.rb', line 10

def author
  @author
end

#contentString (readonly)

Returns:

  • (String)


19
20
21
# File 'lib/flickrie/objects/comment.rb', line 19

def content
  @content
end

#created_atTime (readonly)

Returns:

  • (Time)


13
14
15
# File 'lib/flickrie/objects/comment.rb', line 13

def created_at
  @created_at
end

#idString (readonly)

Returns:

  • (String)


7
8
9
# File 'lib/flickrie/objects/comment.rb', line 7

def id
  @id
end

Returns:

  • (String)


16
17
18
# File 'lib/flickrie/objects/comment.rb', line 16

def permalink
  @permalink
end

#photoFlickrie::Photo (readonly)

Returns:



22
23
24
# File 'lib/flickrie/objects/comment.rb', line 22

def photo
  @photo
end

#videoFlickrie::Video (readonly)

Returns:



24
25
26
# File 'lib/flickrie/objects/comment.rb', line 24

def video
  @video
end

Instance Method Details

#to_sObject



26
27
28
# File 'lib/flickrie/objects/comment.rb', line 26

def to_s
  content
end