Module: Blockchain0x
- Defined in:
- lib/blockchain0x.rb,
lib/blockchain0x/client.rb,
lib/blockchain0x/errors.rb,
lib/blockchain0x/version.rb,
lib/blockchain0x/webhooks.rb,
lib/blockchain0x/resources/api_keys.rb,
lib/blockchain0x/resources/payments.rb,
lib/blockchain0x/resources/transactions.rb,
lib/blockchain0x/resources/payment_requests.rb
Overview
frozen_string_literal: true
Defined Under Namespace
Modules: APIKeyCodes, Resources, Webhooks Classes: APIKeyError, Client, Error, WebhookSignatureError
Constant Summary collapse
- VERSION =
'0.0.1.alpha.0'
Class Method Summary collapse
-
.apikey_error?(error) ⇒ Boolean
‘apikey.` (regardless of which subclass it is).
-
.const_missing(name) ⇒ Class
Blockchain0x::Client (lazy-loaded).
Class Method Details
.apikey_error?(error) ⇒ Boolean
‘apikey.` (regardless of which subclass it is).
54 55 56 57 58 |
# File 'lib/blockchain0x/errors.rb', line 54 def self.apikey_error?(error) return false unless error.respond_to?(:code) && error.code.is_a?(String) error.code.start_with?('apikey.') end |
.const_missing(name) ⇒ Class
Returns Blockchain0x::Client (lazy-loaded).
25 26 27 28 29 30 31 32 |
# File 'lib/blockchain0x.rb', line 25 def self.const_missing(name) if name == :Client require_relative 'blockchain0x/client' const_get(:Client) else super end end |