Module: Counterparty
- Defined in:
- lib/counterparty_ruby.rb,
lib/counterparty/version.rb,
lib/counterparty/resource.rb,
lib/counterparty/resources.rb,
lib/counterparty/connection.rb
Overview
The main module, under which all classes in the library are defined.
Defined Under Namespace
Classes: BTCPay, Balance, Bet, BetExpiration, BetMatch, BetMatchExpiration, Broadcast, Burn, Callback, Cancel, Connection, CounterResource, Credit, Debit, Dividend, Execute, Issuance, JsonResponseError, Message, Order, OrderExpiration, OrderMatch, OrderMatchExpiration, Publish, ResponseError, Send
Constant Summary collapse
- ONE_XCP =
One XCP, in units of Satoshi
100_000_000- ONE_BTC =
One BTC, in units of Satoshi
100_000_000- VERSION =
The library version string
"0.9.0"
Class Attribute Summary collapse
-
.connection ⇒ Object
Returns the current default connection object, or creates a new test-mode connection, if none has been defined.
Class Method Summary collapse
-
.production! ⇒ Object
Establishes the default connection for new objects as being the default counterparty production mode port/user/ip.
-
.test! ⇒ Object
Establishes the default connection for new objects as being the default counterparty test mode port/user/ip.
Class Attribute Details
.connection ⇒ Object
Returns the current default connection object, or creates a new test-mode connection, if none has been defined
54 55 56 |
# File 'lib/counterparty_ruby.rb', line 54 def connection @connection || Connection.new end |
Class Method Details
.production! ⇒ Object
Establishes the default connection for new objects as being the default counterparty production mode port/user/ip
60 61 62 |
# File 'lib/counterparty_ruby.rb', line 60 def production! @connection = Connection.new 4000 end |
.test! ⇒ Object
Establishes the default connection for new objects as being the default counterparty test mode port/user/ip
66 67 68 |
# File 'lib/counterparty_ruby.rb', line 66 def test! @connection = Connection.new end |