lib/conekta.rb in conekta-0.5.2 vs lib/conekta.rb in conekta-0.5.3

- old
+ new

@@ -36,30 +36,41 @@ @api_base = 'https://api.conekta.io' @api_version = '1.0.0' @locale = 'es' + def self.config + yield self + end + def self.api_base @api_base end + def self.api_base=(api_base) @api_base = api_base end + def self.api_version @api_version end + def self.api_version=(api_version) @api_version = api_version end + def self.api_key @api_key end + def self.api_key=(api_key) @api_key = api_key end + def self.locale @locale end + def self.locale=(locale) @locale = locale end end