Module: TildeScraper::Memorable::InstanceMethods

Included in:
Comment, Group, Page, Topic
Defined in:
lib/tilde_scraper/concerns/memorable.rb

Instance Method Summary collapse

Instance Method Details

#add_attributes(attributes) ⇒ Object



21
22
23
# File 'lib/tilde_scraper/concerns/memorable.rb', line 21

def add_attributes(attributes)
  attributes.each { |key, value| self.send("#{key}=", value) }
end

#initialize(attributes) ⇒ Object



17
18
19
# File 'lib/tilde_scraper/concerns/memorable.rb', line 17

def initialize(attributes)
  self.add_attributes(attributes)
end