Class: BlockSDK
Instance Attribute Summary collapse
-
#api_token ⇒ Object
Returns the value of attribute api_token.
Instance Method Summary collapse
- #createBitcoin ⇒ Object
- #createBitcoinCash ⇒ Object
- #createDash ⇒ Object
- #createEthereum ⇒ Object
- #createLitecoin ⇒ Object
- #createMarket ⇒ Object
- #createMonero ⇒ Object
- #createToken ⇒ Object
- #createTool ⇒ Object
- #createWebHook ⇒ Object
-
#initialize(api_token) ⇒ BlockSDK
constructor
A new instance of BlockSDK.
Methods inherited from Base
Constructor Details
#initialize(api_token) ⇒ BlockSDK
Returns a new instance of BlockSDK.
16 17 18 |
# File 'lib/blocksdk_ruby/blocksdk.rb', line 16 def initialize(api_token) @api_token = api_token end |
Instance Attribute Details
#api_token ⇒ Object
Returns the value of attribute api_token.
14 15 16 |
# File 'lib/blocksdk_ruby/blocksdk.rb', line 14 def api_token @api_token end |
Instance Method Details
#createBitcoin ⇒ Object
20 21 22 |
# File 'lib/blocksdk_ruby/blocksdk.rb', line 20 def createBitcoin() return Bitcoin.new(@api_token) end |
#createBitcoinCash ⇒ Object
44 45 46 |
# File 'lib/blocksdk_ruby/blocksdk.rb', line 44 def createBitcoinCash() return BitcoinCash.new(@api_token) end |
#createDash ⇒ Object
40 41 42 |
# File 'lib/blocksdk_ruby/blocksdk.rb', line 40 def createDash() return Dash.new(@api_token) end |
#createEthereum ⇒ Object
24 25 26 |
# File 'lib/blocksdk_ruby/blocksdk.rb', line 24 def createEthereum() return Ethereum.new(@api_token) end |
#createLitecoin ⇒ Object
28 29 30 |
# File 'lib/blocksdk_ruby/blocksdk.rb', line 28 def createLitecoin() return Litecoin.new(@api_token) end |
#createMarket ⇒ Object
48 49 50 |
# File 'lib/blocksdk_ruby/blocksdk.rb', line 48 def createMarket() return Market.new(@api_token) end |
#createMonero ⇒ Object
32 33 34 |
# File 'lib/blocksdk_ruby/blocksdk.rb', line 32 def createMonero() return Monero.new(@api_token) end |
#createToken ⇒ Object
52 53 54 |
# File 'lib/blocksdk_ruby/blocksdk.rb', line 52 def createToken() return Token.new(@api_token) end |