Class: MonopayRuby::Configuration
- Inherits:
-
Object
- Object
- MonopayRuby::Configuration
- Defined in:
- lib/monopay-ruby/configuration.rb
Instance Attribute Summary collapse
-
#api_token ⇒ Object
Returns the value of attribute api_token.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
4 5 6 |
# File 'lib/monopay-ruby/configuration.rb', line 4 def initialize @api_token = ENV["MONOBANK_API_TOKEN"] # note ability to use ENV variable in docs end |
Instance Attribute Details
#api_token ⇒ Object
Returns the value of attribute api_token.
2 3 4 |
# File 'lib/monopay-ruby/configuration.rb', line 2 def api_token @api_token end |