Class: BlockSDK
- Inherits:
-
Base
show all
- Defined in:
- lib/blocksdk_ruby/blocksdk.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods inherited from Base
#getHashType, #getUsage, #listPrice, #request
Constructor Details
#initialize(api_token) ⇒ BlockSDK
Returns a new instance of BlockSDK.
14
15
16
|
# File 'lib/blocksdk_ruby/blocksdk.rb', line 14
def initialize(api_token)
@api_token = api_token
end
|
Instance Attribute Details
#api_token ⇒ Object
Returns the value of attribute api_token.
12
13
14
|
# File 'lib/blocksdk_ruby/blocksdk.rb', line 12
def api_token
@api_token
end
|
Instance Method Details
#createBitcoin ⇒ Object
18
19
20
|
# File 'lib/blocksdk_ruby/blocksdk.rb', line 18
def createBitcoin()
return Bitcoin.new(@api_token)
end
|
#createBitcoinCash ⇒ Object
46
47
48
|
# File 'lib/blocksdk_ruby/blocksdk.rb', line 46
def createBitcoinCash()
return BitcoinCash.new(@api_token)
end
|
#createDash ⇒ Object
42
43
44
|
# File 'lib/blocksdk_ruby/blocksdk.rb', line 42
def createDash()
return Dash.new(@api_token)
end
|
#createEthereum ⇒ Object
22
23
24
|
# File 'lib/blocksdk_ruby/blocksdk.rb', line 22
def createEthereum()
return Ethereum.new(@api_token)
end
|
#createLitecoin ⇒ Object
26
27
28
|
# File 'lib/blocksdk_ruby/blocksdk.rb', line 26
def createLitecoin()
return Litecoin.new(@api_token)
end
|
#createMonero ⇒ Object
30
31
32
|
# File 'lib/blocksdk_ruby/blocksdk.rb', line 30
def createMonero()
return Monero.new(@api_token)
end
|
#createPrice ⇒ Object
34
35
36
|
# File 'lib/blocksdk_ruby/blocksdk.rb', line 34
def createPrice()
return Price.new(@api_token)
end
|
#createWebHook ⇒ Object
38
39
40
|
# File 'lib/blocksdk_ruby/blocksdk.rb', line 38
def createWebHook()
return WebHook.new(@api_token)
end
|