lib/cryptomate_api/management/blockchain.rb in cryptomate_api-0.2.0 vs lib/cryptomate_api/management/blockchain.rb in cryptomate_api-0.3.0

- old
+ new

@@ -4,20 +4,22 @@ module Management # Get all the blockchains available in the platform. You can use this information to create new # credentials for your clients or using every other endpoints that ask for the blockchain where # you want to operate. class Blockchain < CryptomateApi::Base - # Get all blockchains - # https://cryptomate.me/docs/management#get-all-blockchains - # Response: - # [ - # { - # "id": "string", - # "description": "string" - # } - # ] - def get_all_blockchains - self.class.get('/management/blockchains/list') + class << self + # Get all blockchains + # https://cryptomate.me/docs/management#get-all-blockchains + # Response: + # [ + # { + # "id": "string", + # "description": "string" + # } + # ] + def get_all_blockchains + get('/management/blockchains/list') + end end end end end