Class: Paymongo::PaymongoConfig
- Inherits:
-
Object
- Object
- Paymongo::PaymongoConfig
- Defined in:
- lib/paymongo/paymongo_config.rb
Instance Attribute Summary collapse
-
#api_base_url ⇒ Object
readonly
Returns the value of attribute api_base_url.
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#api_version ⇒ Object
readonly
Returns the value of attribute api_version.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ PaymongoConfig
constructor
A new instance of PaymongoConfig.
Constructor Details
#initialize ⇒ PaymongoConfig
Returns a new instance of PaymongoConfig.
14 15 16 17 |
# File 'lib/paymongo/paymongo_config.rb', line 14 def initialize @api_base_url = 'https://api.paymongo.com' @api_version = 'v1' end |
Instance Attribute Details
#api_base_url ⇒ Object (readonly)
Returns the value of attribute api_base_url.
5 6 7 |
# File 'lib/paymongo/paymongo_config.rb', line 5 def api_base_url @api_base_url end |
#api_key ⇒ Object
Returns the value of attribute api_key.
3 4 5 |
# File 'lib/paymongo/paymongo_config.rb', line 3 def api_key @api_key end |
#api_version ⇒ Object (readonly)
Returns the value of attribute api_version.
5 6 7 |
# File 'lib/paymongo/paymongo_config.rb', line 5 def api_version @api_version end |
Class Method Details
.setup ⇒ Object
8 9 10 11 12 |
# File 'lib/paymongo/paymongo_config.rb', line 8 def self.setup new.tap do |instance| yield(instance) if block_given? end end |