module GoCardless
Constants
- VERSION
Attributes
account_details[R]
client[R]
environment[R]
Public Class Methods
account_details=(details)
click to toggle source
# File lib/gocardless.rb, line 17 def account_details=(details) raise ClientError.new("You must provide a token") unless details[:token] @account_details = details @client = Client.new(details) end
environment=(gc_env)
click to toggle source
# File lib/gocardless.rb, line 23 def environment=(gc_env) valid_environments = GoCardless::Client::BASE_URLS.keys if !gc_env.nil? && !valid_environments.include?(gc_env) raise ClientError.new("The GoCardless environment must be one of " + valid_environments.join(", ")) end @environment = gc_env end