class Facebooker::Page::Genre

Constants

FIELDS

Public Class Methods

new(*args) click to toggle source
# File lib/facebooker/models/page.rb, line 18
def initialize(*args)
  super

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