Class: Paymongo::PaymongoConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/paymongo/paymongo_config.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePaymongoConfig

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_urlObject (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_keyObject

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_versionObject (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

.setupObject



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