Class: Reddit::Link
- Inherits:
-
Object
- Object
- Reddit::Link
- Defined in:
- lib/reddit.rb
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#date ⇒ Object
Returns the value of attribute date.
-
#points ⇒ Object
Returns the value of attribute points.
-
#rank ⇒ Object
Returns the value of attribute rank.
-
#site_id ⇒ Object
Returns the value of attribute site_id.
-
#title ⇒ Object
Returns the value of attribute title.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(rank, site_id, url, title, date, points = nil, author = nil) ⇒ Link
constructor
A new instance of Link.
Constructor Details
#initialize(rank, site_id, url, title, date, points = nil, author = nil) ⇒ Link
Returns a new instance of Link.
80 81 82 83 84 85 86 87 88 |
# File 'lib/reddit.rb', line 80 def initialize(rank, site_id, url, title, date, points=nil, =nil) @rank = rank @site_id = site_id @url = url @title = title @date = date @points = points = end |
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author.
78 79 80 |
# File 'lib/reddit.rb', line 78 def end |
#date ⇒ Object
Returns the value of attribute date.
78 79 80 |
# File 'lib/reddit.rb', line 78 def date @date end |
#points ⇒ Object
Returns the value of attribute points.
78 79 80 |
# File 'lib/reddit.rb', line 78 def points @points end |
#rank ⇒ Object
Returns the value of attribute rank.
78 79 80 |
# File 'lib/reddit.rb', line 78 def rank @rank end |
#site_id ⇒ Object
Returns the value of attribute site_id.
78 79 80 |
# File 'lib/reddit.rb', line 78 def site_id @site_id end |
#title ⇒ Object
Returns the value of attribute title.
78 79 80 |
# File 'lib/reddit.rb', line 78 def title @title end |
#url ⇒ Object
Returns the value of attribute url.
78 79 80 |
# File 'lib/reddit.rb', line 78 def url @url end |