class SlickdealsCli::Popular
Attributes
name[RW]
seller[RW]
url[RW]
Public Class Methods
all()
click to toggle source
# File lib/slickdeals_cli/popular.rb, line 17 def self.all @@all end
create_popular_deal(pop_slick)
click to toggle source
# File lib/slickdeals_cli/popular.rb, line 11 def self.create_popular_deal(pop_slick) pop_slick.each do |deal_hash| self.new(deal_hash) end end
new(deal_hash)
click to toggle source
# File lib/slickdeals_cli/popular.rb, line 6 def initialize(deal_hash) deal_hash.each {|attr, value| self.send(("#{attr}="),value)} @@all << self end