Sha256: 231fbae40c2898220d8a5ef253fc4b7564ca64810a2edcedfbb512113d4a2c66

Contents?: true

Size: 625 Bytes

Versions: 4

Compression:

Stored size: 625 Bytes

Contents

module Iprofiler

  class << self
    attr_accessor :api_key, :api_secret, :api_host

    # config/initializers/iprofiler.rb (for instance)
    #
    # Iprofiler.configure do |config|
    #   config.api_key = 'consumer_key'
    #   config.api_secret = 'consumer_secret'
    #   config.api_host = 'http://visitoriq2.iprofile.net'
    # end
    #
    # elsewhere
    #
    # client = Iprofiler::Client.new
    def configure
      yield self
      true
    end
  end

  autoload :Api,     "iprofiler/api"
  autoload :Client,  "iprofiler/client"
  autoload :Mash,    "iprofiler/mash"
  autoload :Version, "iprofiler/version"
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
iprofiler-0.1.3 lib/iprofiler.rb
iprofiler-0.1.2 lib/iprofiler.rb
iprofiler-0.1.1 lib/iprofiler.rb
iprofiler-0.1.0 lib/iprofiler.rb