Module: Monzo
- Defined in:
- lib/monzo.rb,
lib/monzo/client.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, Transaction, Webhook
Constant Summary collapse
- VERSION =
Public: The version number of the gem.
"0.1.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.
24 25 26 |
# File 'lib/monzo.rb', line 24 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.
19 20 21 |
# File 'lib/monzo.rb', line 19 def self.configure(access_token) @configuration = Monzo::Configuration.new(access_token) end |