Sha256: 16511b9e097a57f32b87e040e32a72814090c42754d950eeafaf0859a11e7713

Contents?: true

Size: 579 Bytes

Versions: 1

Compression:

Stored size: 579 Bytes

Contents

require 'active_support/core_ext/class'

module FootStats
  # Class responsible to handle all the FootStats setup.
  #
  # @example
  #
  #    FootStats::Setup.setup do |config|
  #      config.username = "foo"
  #      config.password = "bar"
  #      config.logger   = Rails.logger
  #      config.base_url = "http://footstats.com.br/modyo.asmx/"
  #    end
  #
  class Setup
    cattr_accessor :username
    cattr_accessor :password
    cattr_accessor :logger
    cattr_accessor :base_url

    # @param block [Proc]
    #
    def self.setup
      yield(self)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
foot_stats-0.0.1 lib/foot_stats/setup.rb