Sha256: 6d2a24ccbb84180b9fdd09652e985e13cde74e6b24190857de5102d426411c29
Contents?: true
Size: 919 Bytes
Versions: 1
Compression:
Stored size: 919 Bytes
Contents
require 'pagarme/pagarme_object' require 'pagarme/util' require 'pagarme/model' require 'pagarme/transaction_common' require 'pagarme/customer' require 'pagarme/phone' require 'pagarme/address' require 'pagarme/subscription' require 'pagarme/transaction' require 'pagarme/plan' require 'pagarme/request' require 'pagarme/errors' module PagarMe @@api_key = nil @@api_endpoint = 'https://api.pagar.me' @@api_version = '1' @@live = true @@api_card_encryption_public_key = File.join(File.dirname(__FILE__), '..', 'certs/public_key.pem') def self.api_key=(api_key) @@api_key = api_key end def self.api_key @@api_key end def self.api_card_encryption_public_key @@api_card_encryption_public_key end def self.full_api_url(relative_path) "#{@@api_endpoint}/#{@@api_version}#{relative_path}" end def self.live @@live end def self.live=(live) @@live = live end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pagarme-1.0 | lib/pagarme.rb |