Module: Configuration

Included in:
LoLAPI
Defined in:
lib/configuration.rb

Constant Summary collapse

VALID_OPTIONS_KEYS =
[:api_key].freeze

Instance Method Summary collapse

Instance Method Details

#configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Configuration)

    the object that the method was called on



10
11
12
# File 'lib/configuration.rb', line 10

def configure
  yield self
end

#resetObject



6
7
8
# File 'lib/configuration.rb', line 6

def reset
  self.api_key = nil
end