Class: Fappu::Comment

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject

Returns the value of attribute attached_id.



3
4
5
# File 'lib/fappu/comment.rb', line 3

def attached_id
  @attached_id
end

#dateObject

Returns the value of attribute date.



3
4
5
# File 'lib/fappu/comment.rb', line 3

def date
  @date
end

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/fappu/comment.rb', line 3

def id
  @id
end

#posterObject

Returns the value of attribute poster.



3
4
5
# File 'lib/fappu/comment.rb', line 3

def poster
  @poster
end

#poster_urlObject

Returns the value of attribute poster_url.



3
4
5
# File 'lib/fappu/comment.rb', line 3

def poster_url
  @poster_url
end

#reputationObject

Returns the value of attribute reputation.



3
4
5
# File 'lib/fappu/comment.rb', line 3

def reputation
  @reputation
end

#textObject

Returns the value of attribute text.



3
4
5
# File 'lib/fappu/comment.rb', line 3

def text
  @text
end