Sha256: eb4af46e36509a4e0d8fa67c7b714af196dcc99b962b8e336b9f9ad50283c92f

Contents?: true

Size: 937 Bytes

Versions: 6

Compression:

Stored size: 937 Bytes

Contents

# External requires.
require 'json'
require 'rest-client'
require 'hashie'
require 'logger'

# Internal requires.
require 'facebook_ads/base'
Dir[File.expand_path('../facebook_ads/*.rb', __FILE__)].each { |f| require f }

# The primary namespace for this gem.
module FacebookAds
  def self.logger=(logger)
    @logger = logger
  end

  def self.logger
    unless defined?(@logger)
      @logger       = Logger.new('/dev/null')
      @logger.level = Logger::Severity::UNKNOWN
    end

    @logger
  end

  def self.base_uri=(base_uri)
    @base_uri = base_uri
  end

  def self.base_uri
    @base_uri = 'https://graph.facebook.com/v2.8' unless defined?(@base_uri)
    @base_uri
  end

  def self.access_token=(access_token)
    @access_token = access_token
  end

  def self.access_token
    @access_token
  end

  def self.business_id=(business_id)
    @business_id = business_id
  end

  def self.business_id
    @business_id
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
facebook_ads-0.1.12 lib/facebook_ads.rb
facebook_ads-0.1.11 lib/facebook_ads.rb
facebook_ads-0.1.10 lib/facebook_ads.rb
facebook_ads-0.1.9 lib/facebook_ads.rb
facebook_ads-0.1.8 lib/facebook_ads.rb
facebook_ads-0.1.7 lib/facebook_ads.rb