Class: Fugle::Config Private
- Inherits:
-
Object
- Object
- Fugle::Config
- Defined in:
- lib/fugle/config.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
-
#api_token ⇒ String
private
The API Token.
Instance Method Summary collapse
-
#initialize(attributes = {}, &block) ⇒ Config
constructor
private
Create new config instance.
Constructor Details
#initialize(attributes = {}, &block) ⇒ Config
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Create new config instance
16 17 18 19 20 21 22 |
# File 'lib/fugle/config.rb', line 16 def initialize(attributes = {}, &block) attributes.each do |name, value| send("#{name}=", value) end instance_exec(self, &block) if block_given? end |
Instance Attribute Details
#api_token ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The API Token
29 30 31 |
# File 'lib/fugle/config.rb', line 29 def api_token @api_token || ENV['FUGLE_API_TOKEN'] end |