Module: Monzo
- Defined in:
- lib/monzo.rb,
lib/monzo/pot.rb,
lib/monzo/client.rb,
lib/monzo/errors.rb,
lib/monzo/account.rb,
lib/monzo/balance.rb,
lib/monzo/version.rb,
lib/monzo/webhook.rb,
lib/monzo/feed_item.rb,
lib/monzo/transaction.rb,
lib/monzo/configuration.rb
Defined Under Namespace
Classes: Account, Balance, Client, Configuration, FeedItem, Pot, Transaction, Webhook
Constant Summary collapse
- APIError =
Internal: Exception to raise on reciept of API error.
Class.new(StandardError)
- VERSION =
Public: The version number of the gem.
"0.3.0"
Class Method Summary collapse
-
.client ⇒ Object
Internal: The http client to perform requests.
-
.configure(access_token) ⇒ Object
Public: Set the configuration options such as the accces token.
Class Method Details
.client ⇒ Object
Internal: The http client to perform requests.
26 27 28 |
# File 'lib/monzo.rb', line 26 def self.client Monzo::Client.new(@configuration.access_token) end |
.configure(access_token) ⇒ Object
Public: Set the configuration options such as the accces token.
access_token - The access_token to authenticate with.
Returns: an instance of Monzo::Configuration.
21 22 23 |
# File 'lib/monzo.rb', line 21 def self.configure(access_token) @configuration = Monzo::Configuration.new(access_token) end |