module TildeScraper::Memorable::ClassMethods

Public Instance Methods

create(attributes) click to toggle source
# File lib/tilde_scraper/concerns/memorable.rb, line 3
def create(attributes)
  topic = new(attributes)
  self.all << topic
  topic
end
create_from_array(array) click to toggle source
# File lib/tilde_scraper/concerns/memorable.rb, line 9
def create_from_array(array)
  array.map do |hash|
    create(hash)
  end
end