class Revolut::Client
Wrapper class for all actions.
Public Class Methods
new(options = {})
click to toggle source
Initialize client.
@param options [Hash] A customizable set of options. @option options [String] :api_key API Key provider from Revlut. @option options [String] :environment Environment (Production/Sanbox).
# File lib/revolut/client.rb, line 28 def initialize(options = {}) config.api_key = options[:api_key] if options[:api_key] config.environment = options[:environment] if options[:environment] end
Public Instance Methods
config()
click to toggle source
@return [Configuration]
# File lib/revolut/client.rb, line 34 def config @config ||= Configuration.new end
Also aliased as: configuration
configure() { |config| ... }
click to toggle source
Configure client with a block of settings.
# File lib/revolut/client.rb, line 40 def configure yield(config) if block_given? true end
connection()
click to toggle source
@return [Connection]
# File lib/revolut/client.rb, line 46 def connection @connection ||= Connection.new(self) end