module Eucalyptus

Attributes

access_token[RW]
api_version[RW]
default_account_id[RW]
graph[RW]

Public Class Methods

configure() { |self| ... } click to toggle source
# File lib/eucalyptus.rb, line 11
def configure
  yield(self)
  Koala.config.api_version = api_version
  self.graph = Koala::Facebook::API.new(access_token)
end
default_account() click to toggle source
# File lib/eucalyptus.rb, line 17
def default_account
  raise "Please provide a default account id" if self.default_account_id.nil?
  @default_account ||= Eucalyptus::Account.find("act_#{self.default_account_id}") 
end