Class: Fappu::Comment
- Inherits:
-
Object
- Object
- Fappu::Comment
- Defined in:
- lib/fappu/comment.rb
Instance Attribute Summary collapse
-
#attached_id ⇒ Object
Returns the value of attribute attached_id.
-
#date ⇒ Object
Returns the value of attribute date.
-
#id ⇒ Object
Returns the value of attribute id.
-
#poster ⇒ Object
Returns the value of attribute poster.
-
#poster_url ⇒ Object
Returns the value of attribute poster_url.
-
#reputation ⇒ Object
Returns the value of attribute reputation.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(args) ⇒ Comment
constructor
A new instance of Comment.
Constructor Details
#initialize(args) ⇒ Comment
Returns a new instance of Comment.
6 7 8 9 10 11 |
# File 'lib/fappu/comment.rb', line 6 def initialize args comment_args = comment_parameters(args) comment_args.each do |k,v| instance_variable_set("@#{k}",v) unless v.nil? end end |
Instance Attribute Details
#attached_id ⇒ Object
Returns the value of attribute attached_id.
3 4 5 |
# File 'lib/fappu/comment.rb', line 3 def attached_id @attached_id end |
#date ⇒ Object
Returns the value of attribute date.
3 4 5 |
# File 'lib/fappu/comment.rb', line 3 def date @date end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/fappu/comment.rb', line 3 def id @id end |
#poster ⇒ Object
Returns the value of attribute poster.
3 4 5 |
# File 'lib/fappu/comment.rb', line 3 def poster @poster end |
#poster_url ⇒ Object
Returns the value of attribute poster_url.
3 4 5 |
# File 'lib/fappu/comment.rb', line 3 def poster_url @poster_url end |
#reputation ⇒ Object
Returns the value of attribute reputation.
3 4 5 |
# File 'lib/fappu/comment.rb', line 3 def reputation @reputation end |
#text ⇒ Object
Returns the value of attribute text.
3 4 5 |
# File 'lib/fappu/comment.rb', line 3 def text @text end |