Sha256: ae92adb436241bca7a5a760ae4bde4bee3c7470ed374bdd25143df8b545e23fa

Contents?: true

Size: 523 Bytes

Versions: 1

Compression:

Stored size: 523 Bytes

Contents

require 'builder'
require 'logger'
require 'httparty'
require 'json'

module MyMoip
  class << self
    attr_accessor :token, :key, :environment, :logger, :default_referer_url

    def api_url
      if environment == "sandbox"
        "https://desenvolvedor.moip.com.br/sandbox"
      else
        "https://www.moip.com.br"
      end
    end
  end
end

$LOAD_PATH << "./lib/mymoip"
Dir[File.dirname(__FILE__) + "/mymoip/*.rb"].each { |file| require file }

MyMoip.environment = "sandbox"
MyMoip.logger = Logger.new(STDOUT)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mymoip-0.2.1 lib/mymoip.rb