Sha256: 846c5300e2e302c26587ee7370de8c19c68934477fba8292103de7edb66b431d

Contents?: true

Size: 1016 Bytes

Versions: 1

Compression:

Stored size: 1016 Bytes

Contents

# Transferwise Ruby bindings
require 'open-uri'
require 'oauth2'
require 'rest-client'
require 'json'

# Version
require "transferwise/version"

# Oauth2 Authentication
require "transferwise/oauth"

# Resources
require 'transferwise/transferwise_object'
require 'transferwise/api_resource'
require 'transferwise/profile'
require 'transferwise/quote'
require 'transferwise/account'
require 'transferwise/transfer'
require 'transferwise/util'
require 'transferwise/request'
require 'transferwise/borderless_account'
require 'transferwise/borderless_account/balance_currency'
require 'transferwise/borderless_account/statement'
require 'transferwise/borderless_account/transaction'

# Errors
require 'transferwise/transferwise_error'

module Transferwise

  class << self
    attr_accessor :mode
    attr_accessor :access_token

    def api_base
      live_url = 'api.transferwise.com'
      test_url = 'sandbox.transferwise.tech'
      @api_base ||= "https://#{mode == 'live' ? live_url : test_url}"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
transferwise-0.2.0 lib/transferwise.rb