Sha256: 064fe0570144aa96120044e0ffdb3a27769c88ee7aacbd79ddb6e6bfceac96d5

Contents?: true

Size: 684 Bytes

Versions: 5

Compression:

Stored size: 684 Bytes

Contents

require 'faraday'
require 'oauth2'
require 'faraday_middleware'

directory = File.expand_path(File.dirname(__FILE__))

module Gowalla

  class << self
    attr_accessor :api_key
    attr_accessor :username
    attr_accessor :password
    attr_accessor :api_secret
    attr_accessor :test_mode

    # Configures default credentials easily
    # @yield [api_key, username, password]
    def configure
      yield self
      true
    end

    def test_mode?
      !!self.test_mode
    end
  end

  require 'gowalla/spots'
  require 'gowalla/items'
  require 'gowalla/trips'
  require 'gowalla/checkins'
  require 'gowalla/flags'
  require 'gowalla/users'
  require 'gowalla/client'

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gowalla-0.5.7 lib/gowalla.rb
gowalla-0.5.6 lib/gowalla.rb
gowalla-0.5.5 lib/gowalla.rb
gowalla-0.5.4 lib/gowalla.rb
gowalla-0.5.3 lib/gowalla.rb