Module: Revolut
- Defined in:
- lib/revolut/middlewares/catch_error.rb,
lib/revolut.rb,
lib/revolut/http.rb,
lib/revolut/client.rb,
lib/revolut/version.rb,
lib/revolut/resources/auth.rb,
lib/revolut/resources/rate.rb,
lib/revolut/resources/account.rb,
lib/revolut/resources/payment.rb,
lib/revolut/resources/webhook.rb,
lib/revolut/resources/resource.rb,
lib/revolut/resources/simulation.rb,
lib/revolut/resources/transaction.rb,
lib/revolut/resources/bank_account.rb,
lib/revolut/resources/counterparty.rb,
lib/revolut/resources/webhook_event.rb,
lib/revolut/resources/transfer_reason.rb,
lib/revolut/resources/foreign_exchange.rb
Overview
Helper middleware only intended to be used in the console. The idea is to have a fast extraction of the API error message from the response body.
Defined Under Namespace
Modules: HTTP, Middleware
Classes: Account, Auth, BankAccount, Client, Configuration, ConfigurationError, Counterparty, Error, ForeignExchange, NotImplementedError, Payment, Rate, Resource, SignatureVerificationError, Simulation, Transaction, TransferReason, UnsupportedOperationError, Webhook, WebhookEvent
Constant Summary
collapse
- VERSION =
"0.1.7"
Class Attribute Summary collapse
Class Method Summary
collapse
Class Method Details
79
80
81
|
# File 'lib/revolut.rb', line 79
def configure
yield(config)
end
|
.env ⇒ Object
71
72
73
|
# File 'lib/revolut.rb', line 71
def env
config.environment
end
|
.sandbox? ⇒ Boolean
75
76
77
|
# File 'lib/revolut.rb', line 75
def sandbox?
env == :sandbox
end
|