Class: Hacker::News::Job
Overview
A YC-posted job listing.
Instance Attribute Summary collapse
-
#score ⇒ Object
readonly
Returns the value of attribute score.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Attributes inherited from Item
Instance Method Summary collapse
Methods inherited from Item
Constructor Details
This class inherits a constructor from Hacker::News::Item
Instance Attribute Details
#score ⇒ Object (readonly)
Returns the value of attribute score.
87 88 89 |
# File 'lib/hacker/news/items.rb', line 87 def score @score end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
87 88 89 |
# File 'lib/hacker/news/items.rb', line 87 def text @text end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
87 88 89 |
# File 'lib/hacker/news/items.rb', line 87 def title @title end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
87 88 89 |
# File 'lib/hacker/news/items.rb', line 87 def url @url end |
Instance Method Details
#assign(h) ⇒ Object
89 90 91 92 93 94 |
# File 'lib/hacker/news/items.rb', line 89 def assign(h) @title = h['title'] @score = h['score'] @url = h['url'] @text = h['text'] end |