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.



15
16
17
# File 'lib/blocksdk_ruby/blocksdk.rb', line 15

def initialize(api_token)
  @api_token = api_token
end

Instance Attribute Details

#api_tokenObject

Returns the value of attribute api_token.



13
14
15
# File 'lib/blocksdk_ruby/blocksdk.rb', line 13

def api_token
  @api_token
end

Instance Method Details

#createBitcoinObject



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

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

#createBitcoinCashObject



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

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

#createDashObject



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

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

#createEthereumObject



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

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

#createLitecoinObject



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

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

#createMarketObject



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

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

#createMoneroObject



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

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

#createTokenObject



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

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

#createToolObject



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

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

#createWebHookObject



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

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