Module: Quovo
- Defined in:
- lib/quovo.rb,
lib/quovo/api.rb,
lib/quovo/fake.rb,
lib/quovo/hook.rb,
lib/quovo/scope.rb,
lib/quovo/token.rb,
lib/quovo/config.rb,
lib/quovo/errors.rb,
lib/quovo/request.rb,
lib/quovo/version.rb,
lib/quovo/api/base.rb,
lib/quovo/api/users.rb,
lib/quovo/api/history.rb,
lib/quovo/models/base.rb,
lib/quovo/models/sync.rb,
lib/quovo/models/user.rb,
lib/quovo/api/accounts.rb,
lib/quovo/api/webhooks.rb,
lib/quovo/models/image.rb,
lib/quovo/api/positions.rb,
lib/quovo/models/choice.rb,
lib/quovo/api/brokerages.rb,
lib/quovo/api/challenges.rb,
lib/quovo/api/portfolios.rb,
lib/quovo/models/account.rb,
lib/quovo/models/webhook.rb,
lib/quovo/models/position.rb,
lib/quovo/models/progress.rb,
lib/quovo/api/iframe_token.rb,
lib/quovo/models/brokerage.rb,
lib/quovo/models/challenge.rb,
lib/quovo/models/portfolio.rb,
lib/quovo/refinements/cast.rb,
lib/quovo/models/transaction.rb,
lib/quovo/refinements/permit.rb,
lib/quovo/models/iframe_token.rb,
lib/quovo/refinements/compact.rb,
lib/quovo/refinements/require.rb,
lib/quovo/refinements/to_time.rb,
lib/quovo/refinements/sensitive.rb
Defined Under Namespace
Modules: Api, Fake, Hook, Models, Refinements, Request, Scope Classes: Config, Token
Constant Summary collapse
- QuovoError =
Class.new(StandardError)
- ParamsError =
Class.new(QuovoError)
- HttpError =
Class.new(QuovoError)
- ForbiddenError =
Class.new(HttpError)
- NotFoundError =
Class.new(HttpError)
- StubNotFoundError =
Class.new(StandardError)
- VERSION =
'1.0.11'.freeze
Class Method Summary collapse
Methods included from Scope
Methods included from Hook
clear_hooks!, hook, hooks, run_hooks!
Methods included from Api
accounts, brokerages, challenges, history, iframe_token, portfolios, positions, users, webhooks
Methods included from Fake
fake!, fake?, fake_calls, real!
Class Method Details
.enable_logging ⇒ Object
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/quovo.rb', line 64 def self.enable_logging Quovo.hook do |path, method, params, status_code, response, elapsed_time, scope| if Quovo.config.debug log = [ '', 'Quovo Action:', "path: #{path}", "method: #{method}", "params: #{params.inspect}", "status_code: #{status_code}", "response: #{response.inspect}", "elapsed_time: #{elapsed_time}s", "scope: #{scope.inspect}", '' ] puts log.join("\n ") end end end |
.inspect ⇒ Object
60 61 62 |
# File 'lib/quovo.rb', line 60 def self.inspect config.inspect end |