Class: Flickrie::Comment
- Inherits:
-
Object
- Object
- Flickrie::Comment
- Defined in:
- lib/flickrie/objects/comment.rb
Instance Attribute Summary collapse
- #author ⇒ Flickrie::User readonly
- #content ⇒ String readonly
- #created_at ⇒ Time readonly
- #id ⇒ String readonly
- #permalink ⇒ String readonly
- #photo ⇒ Flickrie::Photo readonly
- #video ⇒ Flickrie::Video readonly
Instance Method Summary collapse
-
#initialize(hash, api_caller) ⇒ Comment
constructor
A new instance of Comment.
- #to_s ⇒ Object
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
#author ⇒ Flickrie::User (readonly)
10 11 12 |
# File 'lib/flickrie/objects/comment.rb', line 10 def @author end |
#content ⇒ String (readonly)
19 20 21 |
# File 'lib/flickrie/objects/comment.rb', line 19 def content @content end |
#created_at ⇒ Time (readonly)
13 14 15 |
# File 'lib/flickrie/objects/comment.rb', line 13 def created_at @created_at end |
#id ⇒ String (readonly)
7 8 9 |
# File 'lib/flickrie/objects/comment.rb', line 7 def id @id end |
#permalink ⇒ String (readonly)
16 17 18 |
# File 'lib/flickrie/objects/comment.rb', line 16 def permalink @permalink end |
#photo ⇒ Flickrie::Photo (readonly)
22 23 24 |
# File 'lib/flickrie/objects/comment.rb', line 22 def photo @photo end |
#video ⇒ Flickrie::Video (readonly)
24 25 26 |
# File 'lib/flickrie/objects/comment.rb', line 24 def video @video end |
Instance Method Details
#to_s ⇒ Object
26 27 28 |
# File 'lib/flickrie/objects/comment.rb', line 26 def to_s content end |