Method: Facebooker::Page::Genre#initialize

Defined in:
lib/facebooker/models/page.rb

#initialize(*args) ⇒ Genre

Returns a new instance of Genre.



10
11
12
13
14
15
16
17
# File 'lib/facebooker/models/page.rb', line 10

def initialize(*args)
  super

  # convert '1'/'0' to true/false
  FIELDS.each do |field|
    self.send("#{field}=", self.send(field) == '1')
  end
end