Sha256: 6f3b7117e4238fa3f096b14ccb6dfe77b4d723b1094819b5910976bcfc12528e

Contents?: true

Size: 1.96 KB

Versions: 2

Compression:

Stored size: 1.96 KB

Contents

require "json"
require "i18n"

require "conekta/version"

require "conekta/operations/find"
require "conekta/operations/where"
require "conekta/operations/create"
require "conekta/operations/delete"
require "conekta/operations/update"
require "conekta/operations/custom_action"
require "conekta/operations/create_member"

require "conekta/conekta_object"
require "conekta/list"
require "conekta/resource"
require "conekta/requestor"
require "conekta/util"
require "conekta/error"
require "conekta/error_list"

require "conekta/event"
require "conekta/charge"
require "conekta/customer"
require "conekta/card"
require "conekta/discount_line"
require "conekta/fiscal_entity"
require "conekta/log"
require "conekta/method"
require "conekta/order"
require "conekta/payment_method"
require "conekta/payee"
require "conekta/payout"
require "conekta/payout_method"
require "conekta/destination"
require "conekta/plan"
require "conekta/shipping_contact"
require "conekta/shipping_line"
require "conekta/payment_source"
require "conekta/subscription"
require "conekta/tax_line"
require "conekta/token"
require "conekta/webhook"
require "conekta/webhook_log"
require "conekta/refund"
require "conekta/line_item"
require "conekta/return"
require "conekta/address"

module Conekta
  I18n.load_path += Dir[File.join(File.expand_path('../..', __FILE__), 'locales', '*.{rb,yml}').to_s]

  @api_base = 'https://api.conekta.io'
  @api_version = '2.0.0'
  @locale = 'es'

  def self.config
    yield self
  end

  def self.plugin
    @plugin
  end

  def self.plugin=(plugin)
    @plugin = plugin
  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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
conekta-1.1.1 lib/conekta.rb
conekta-1.1.0 lib/conekta.rb