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

#request

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_tokenObject

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

#createBitcoinObject



20
21
22
# File 'lib/blocksdk_ruby/blocksdk.rb', line 20

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

#createBitcoinCashObject



44
45
46
# File 'lib/blocksdk_ruby/blocksdk.rb', line 44

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

#createDashObject



40
41
42
# File 'lib/blocksdk_ruby/blocksdk.rb', line 40

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

#createEthereumObject



24
25
26
# File 'lib/blocksdk_ruby/blocksdk.rb', line 24

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

#createLitecoinObject



28
29
30
# File 'lib/blocksdk_ruby/blocksdk.rb', line 28

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

#createMarketObject



48
49
50
# File 'lib/blocksdk_ruby/blocksdk.rb', line 48

def createMarket()
	return Market.new(@api_token)
end

#createMoneroObject



32
33
34
# File 'lib/blocksdk_ruby/blocksdk.rb', line 32

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

#createTokenObject



52
53
54
# File 'lib/blocksdk_ruby/blocksdk.rb', line 52

def createToken()
	return Token.new(@api_token)
end

#createToolObject



56
57
58
# File 'lib/blocksdk_ruby/blocksdk.rb', line 56

def createTool()
	return Tool.new(@api_token)
end

#createWebHookObject



36
37
38
# File 'lib/blocksdk_ruby/blocksdk.rb', line 36

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