Class: MonopayRuby::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/monopay-ruby/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_tokenObject

Returns the value of attribute api_token.



2
3
4
# File 'lib/monopay-ruby/configuration.rb', line 2

def api_token
  @api_token
end