module FootballData::Configuration

Constants

API_ENDPOINT
DEFAULT_API_KEY
DEFAULT_API_VERSON
DEFAULT_RESPONSE_CONTROL

Attributes

api_key[W]
api_version[W]
response_control[W]

Public Instance Methods

configure() { |self| ... } click to toggle source
# File lib/football__data/configuration.rb, line 11
def configure
    raise "don't you wanna configure it?" unless block_given?
    yield self
    @api_version ||= DEFAULT_API_VERSON
    @response_control ||= DEFAULT_RESPONSE_CONTROL
end
reset!() click to toggle source
# File lib/football__data/configuration.rb, line 18
def reset!
    @api_key = DEFAULT_API_KEY
    @api_version = DEFAULT_API_VERSON
    @response_control = DEFAULT_RESPONSE_CONTROL
end