Sha256: 982bc2421b664f93852525ae724c5f7209c4832817744addb04b6a483fb45cde

Contents?: true

Size: 1.52 KB

Versions: 1

Compression:

Stored size: 1.52 KB

Contents

require "gnip_api/version"
require "gnip_api/errors"
require "gnip_api/configuration"
require "gnip_api/endpoints"
require "gnip_api/limiters/rules"
require "gnip_api/rate_limiter"
require "gnip_api/apis/power_track/stream"
require "gnip_api/apis/power_track/rules"
require "gnip_api/apis/power_track/buffer"
require "gnip_api/apis/power_track/rule"
require "gnip_api/apis/search/stream"
require "gnip_api/apis/search/count"
require "gnip_api/apis/search/query"
require "gnip_api/apis/search/result"
require "gnip_api/gnip/message"
require "gnip_api/gnip/system_message"
require "gnip_api/gnip/actor"
require "gnip_api/gnip/activity"
require "gnip_api/gnip/gnip_data"
require "gnip_api/gnip/url"
require "gnip_api/adapter"
require "gnip_api/adapters/base_adapter"
require "gnip_api/adapters/httparty_adapter"
require "gnip_api/response"
require "gnip_api/request"

# External
require 'httparty'
require 'json'
require 'logger'
require 'addressable/uri'
require 'uri'

module GnipApi
  class << self
    attr_reader :configuration

    def configuration
      @configuration ||= Configuration.new
    end

    def configure
      yield(configuration)
      self.configuration
    end

    def logger
      self.configuration.logger
    end

    def rate_limiter
      self.configuration.rate_limiter
    end
    
    def config
      self.configuration
    end

    def credentials?
      @configuration.user && @configuration.password && @configuration.account
    end

    def adapter_class?
      @configuration.adapter_class ? true : false
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gnip_api-0.0.4 lib/gnip_api.rb