class HackerCurse::ForumComment
Attributes
age[RW]
age_text[RW]
comment_text[RW]
comment_url[RW]
hash[R]
head[RW]
points[RW]
submitter[RW]
submitter_url[RW]
Public Class Methods
new(h)
click to toggle source
# File lib/hacker/curse/abstractsiteparser.rb, line 95 def initialize h @hash = h [:points, :comment_url, :age_text, :age, :submitter, :submitter_url, :comment_text, :head].each do |sym| instance_variable_set("@#{sym.to_s}", h[sym]) end end
Public Instance Methods
[](sym)
click to toggle source
# File lib/hacker/curse/abstractsiteparser.rb, line 103 def [](sym) @hash[sym] end
keys()
click to toggle source
# File lib/hacker/curse/abstractsiteparser.rb, line 106 def keys @hash.keys end
values()
click to toggle source
# File lib/hacker/curse/abstractsiteparser.rb, line 109 def values @hash.values end