Class: BlockSDK

Inherits:
Base
  • Object
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_tokenObject

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

#createBitcoinObject



18
19
20
# File 'lib/blocksdk_ruby/blocksdk.rb', line 18

def createBitcoin()
	return Bitcoin.new(@api_token)
end

#createBitcoinCashObject



46
47
48
# File 'lib/blocksdk_ruby/blocksdk.rb', line 46

def createBitcoinCash()
	return BitcoinCash.new(@api_token)
end

#createDashObject



42
43
44
# File 'lib/blocksdk_ruby/blocksdk.rb', line 42

def createDash()
	return Dash.new(@api_token)
end

#createEthereumObject



22
23
24
# File 'lib/blocksdk_ruby/blocksdk.rb', line 22

def createEthereum()
	return Ethereum.new(@api_token)
end

#createLitecoinObject



26
27
28
# File 'lib/blocksdk_ruby/blocksdk.rb', line 26

def createLitecoin()
	return Litecoin.new(@api_token)
end

#createMoneroObject



30
31
32
# File 'lib/blocksdk_ruby/blocksdk.rb', line 30

def createMonero()
	return Monero.new(@api_token)
end

#createPriceObject



34
35
36
# File 'lib/blocksdk_ruby/blocksdk.rb', line 34

def createPrice()
	return Price.new(@api_token)
end

#createWebHookObject



38
39
40
# File 'lib/blocksdk_ruby/blocksdk.rb', line 38

def createWebHook()
	return WebHook.new(@api_token)
end