Sha256: b93ced29698c6e66700de22eefe1e8ae169fb529403125f2e9bf4ea700937d3a
Contents?: true
Size: 514 Bytes
Versions: 2
Compression:
Stored size: 514 Bytes
Contents
class Content attr_reader :title, :description, :keywords, :link @@all = [] # def initialize(title, description, keywords, link="Link not provided") @title = title @description = description @keywords = keywords @link = link #adds instance of Content to @@all @@all << self end def self.clear_search @@all.clear end def self.all @@all end def self.add_content(title, description, keywords, link) Content.new(title, description, keywords, link) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cli-nasa-0.1.1 | lib/models/content.rb |
cli-nasa-0.1.0 | lib/models/content.rb |