Sha256: 1af89db452cc8d518c32923ef79403ba13e58c4a0394817e49874d7ebc9c591d

Contents?: true

Size: 1.41 KB

Versions: 3

Compression:

Stored size: 1.41 KB

Contents

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

# Version
require "transferwise/version"

# Oauth2 Authentication
require "transferwise/oauth"

# ActiveSupport extensions
require 'active_support/core_ext/hash/indifferent_access'
require 'active_support/core_ext/object/blank'
require 'active_support/core_ext/string/inflections'

# 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/rate'
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 = 'https://api.transferwise.com'
      test_url = 'https://api.sandbox.transferwise.tech'
      @api_base ||= mode == 'live' ? live_url : test_url
    end

    def authorization_base
      live_url = 'https://api.transferwise.com'
      test_url = 'https://sandbox.transferwise.tech'
      @authorization_base ||= mode == 'live' ? live_url : test_url
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
transferwise-rb-0.3.0 lib/transferwise.rb
transferwise-0.2.6 lib/transferwise.rb
transferwise-0.2.5 lib/transferwise.rb