Class: Reddit::Link

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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, author=nil)
  @rank     = rank
  @site_id  = site_id
  @url      = url
  @title    = title
  @date     = date
  @points   = points
  @author   = author
end

Instance Attribute Details

#authorObject

Returns the value of attribute author.



78
79
80
# File 'lib/reddit.rb', line 78

def author
  @author
end

#dateObject

Returns the value of attribute date.



78
79
80
# File 'lib/reddit.rb', line 78

def date
  @date
end

#pointsObject

Returns the value of attribute points.



78
79
80
# File 'lib/reddit.rb', line 78

def points
  @points
end

#rankObject

Returns the value of attribute rank.



78
79
80
# File 'lib/reddit.rb', line 78

def rank
  @rank
end

#site_idObject

Returns the value of attribute site_id.



78
79
80
# File 'lib/reddit.rb', line 78

def site_id
  @site_id
end

#titleObject

Returns the value of attribute title.



78
79
80
# File 'lib/reddit.rb', line 78

def title
  @title
end

#urlObject

Returns the value of attribute url.



78
79
80
# File 'lib/reddit.rb', line 78

def url
  @url
end