Sha256: 9427878c07d95c861e6fde2d46e3156aa5bd28d71f13f0265cb082c04f6ba0af

Contents?: true

Size: 1.26 KB

Versions: 4

Compression:

Stored size: 1.26 KB

Contents

# External
require 'httparty'
require 'yajl'
require 'logger'
require 'addressable/uri'
require 'uri'
require 'pty'

require "gnip_api/version"
require "gnip_api/errors"
require "gnip_api/configuration"
require "gnip_api/endpoints"
require "gnip_api/power_track/stream"
require "gnip_api/power_track/rules"
require "gnip_api/power_track/buffer"
require "gnip_api/power_track/rule"
require "gnip_api/search"
require "gnip_api/gnip/message"
require "gnip_api/gnip/system_message"
require "gnip_api/gnip/twitter_compliance_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/response"
require "gnip_api/request"
require "gnip_api/json_parser"

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 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

4 entries across 4 versions & 1 rubygems

Version Path
gnip_api-1.2.4 lib/gnip_api.rb
gnip_api-1.2.3 lib/gnip_api.rb
gnip_api-1.2.2 lib/gnip_api.rb
gnip_api-1.2.1 lib/gnip_api.rb