Class: RandomOrg::Configuration
- Inherits:
-
Object
- Object
- RandomOrg::Configuration
- Defined in:
- lib/random_org/configuration.rb
Overview
Holds configuration of the module required for it to work.
Instance Attribute Summary collapse
-
#api_key ⇒ String
Sets the random.org API key.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 |
# File 'lib/random_org/configuration.rb', line 8 def initialize @api_key = '' end |
Instance Attribute Details
#api_key ⇒ String
Sets the random.org API key.
6 7 8 |
# File 'lib/random_org/configuration.rb', line 6 def api_key @api_key end |