Module: Insight
- Defined in:
- lib/insight.rb,
lib/insight/api.rb,
lib/insight/version.rb,
lib/insight/connection.rb
Defined Under Namespace
Classes: API, Connection
Constant Summary collapse
- MAIN_CHAIN =
'btc'- VERSION =
'0.0.9'
Instance Attribute Summary collapse
-
#api ⇒ Object
writeonly
Sets the attribute api.
Class Method Summary collapse
Instance Attribute Details
#api=(value) ⇒ Object (writeonly)
Sets the attribute api
8 9 10 |
# File 'lib/insight.rb', line 8 def api=(value) @api = value end |
Class Method Details
.api ⇒ Object
12 13 14 |
# File 'lib/insight.rb', line 12 def self.api @api ||= API.new(network: MAIN_CHAIN) end |
.method_missing(sym, *args, &block) ⇒ Object
16 17 18 |
# File 'lib/insight.rb', line 16 def self.method_missing(sym, *args, &block) api.send(sym, *args, &block) end |