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_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

#createTool ⇒ Object



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

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

#createWebHook ⇒ Object



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

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