Class Facebooker::Page::Genre
In: lib/facebooker/models/page.rb
Parent: Object

Methods

new  

Included Modules

Model

Constants

FIELDS = [ :dance, :party, :relax, :talk, :think, :workout, :sing, :intimate, :raunchy, :headphones ]

Public Class methods

[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

[Validate]