Module: Blockr
- Defined in:
- lib/blockr.rb,
lib/blockr/api.rb,
lib/blockr/version.rb,
lib/blockr/connection.rb
Defined Under Namespace
Classes: API, Connection
Constant Summary collapse
- API_VERSION =
'v1'
- BLOCK_CHAIN =
'btc'
- VERSION =
'0.0.6'
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/blockr.rb', line 8 def api=(value) @api = value end |
Class Method Details
.api ⇒ Object
13 14 15 |
# File 'lib/blockr.rb', line 13 def self.api @api ||= API.new(network:BLOCK_CHAIN, api_version:API_VERSION) end |
.method_missing(sym, *args, &block) ⇒ Object
17 18 19 |
# File 'lib/blockr.rb', line 17 def self.method_missing(sym, *args, &block) api.send(sym, *args, &block) end |