Class: ECMBlockchain::Asset

Inherits:
Object
  • Object
show all
Extended by:
Request, Routes
Defined in:
lib/ecm-blockchain-api/asset.rb

Constant Summary

Constants included from Routes

Routes::ASSET_BATCH_URL, Routes::ASSET_URL, Routes::MEMBERS_URL, Routes::TOKENS_URL

Constants included from Request

Request::HTTP_VERBS

Class Method Summary collapse

Methods included from Request

extended, request

Class Method Details

.create(identity, data) ⇒ Object



7
8
9
10
# File 'lib/ecm-blockchain-api/asset.rb', line 7

def create(identity, data)
  verify_asset(data)
  asset(request( :post, "/#{identity}#{ASSET_URL}", data ))
end