class NftmakerApi::Client::Nfts
Public Class Methods
new(client, project_id: nil)
click to toggle source
# File lib/nftmaker_api/client/nfts.rb, line 3 def initialize(client, project_id: nil) @client = client @project_id = project_id end
Public Instance Methods
free()
click to toggle source
# File lib/nftmaker_api/client/nfts.rb, line 13 def free list(state: :free) end
list(state: :all)
click to toggle source
# File lib/nftmaker_api/client/nfts.rb, line 8 def list(state: :all) @client.get "GetNfts/#{@client.api_key}/#{@project_id}/#{state}" end
Also aliased as: all
reserved()
click to toggle source
# File lib/nftmaker_api/client/nfts.rb, line 17 def reserved list(state: :reserved) end
sold()
click to toggle source
# File lib/nftmaker_api/client/nfts.rb, line 21 def sold list(state: :sold) end