Sha256: 1da4007a185eaab2b4e8f9d39a06f09b08192660646d672b85bc5f678c740e93

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 KB

Contents

require "plataforma_social/version"
require "plataforma_social/configuration"
require "plataforma_social/domains"
require "plataforma_social/facebook"
require "plataforma_social/request"
require "plataforma_social/helpers"

module PlataformaSocial
  class << self
    def configuration
      @configuration ||= Configuration.new
    end
    
    def configure
      yield(configuration)
    end
    
    def api_key
      configuration.api_key
    end
    
    def secret
      configuration.secret
    end
    
    def facebook_app_id
      configuration.facebook_app_id
    end
    
    def facebook_app_secret
      configuration.facebook_app_secret
    end
    
    def facebook_app_namespace
      configuration.facebook_app_namespace
    end
    
    def facebook_scope
      configuration.facebook_scope
    end
    
    def facebook_callback_url
      protocol = Rails.env.development? || Rails.env.staging? ? 'http' : 'https'
      configuration.facebook_callback_url || "#{protocol}://apps.facebook.com/#{configuration.facebook_app_namespace}/"
    end
    
  end  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
plataforma_social-0.0.4 lib/plataforma_social.rb