Method: RandomOrg.configure

Defined in:
lib/random_org.rb

.configure {|config| ... } ⇒ Object

Modify the current configuration.

Examples:

RandomOrg.configure do |config|
  config.api_key = "YOUR_API_KEY"
end

Yield Parameters:



27
28
29
30
# File 'lib/random_org.rb', line 27

def self.configure
  self.configuration ||= RandomOrg::Configuration.new
  yield self.configuration
end