lib/conekta.rb in conekta-0.4.6 vs lib/conekta.rb in conekta-0.4.7

- old
+ new

@@ -1,6 +1,7 @@ -require 'json' +require "json" +require "i18n" require "conekta/version" require "conekta/operations/find" require "conekta/operations/where" @@ -26,16 +27,17 @@ require "conekta/payee" require "conekta/payout" require "conekta/payout_method" require "conekta/method" require "conekta/webhook_log" -require "i18n" module Conekta - I18n.load_path = Dir[File.join(File.expand_path('../..', __FILE__), 'locales', '*.{rb,yml}').to_s] + I18n.load_path += Dir[File.join(File.expand_path('../..', __FILE__), 'locales', '*.{rb,yml}').to_s] + @api_base = 'https://api.conekta.io' @api_version = '0.3.0' @locale = 'es' + def self.api_base @api_base end def self.api_base=(api_base) @api_base = api_base