class NftmakerApi::Client::Reservations
Public Class Methods
new(client, project_id:)
click to toggle source
# File lib/nftmaker_api/client/reservations.rb, line 3 def initialize(client, project_id:) @client = client @project_id = project_id end
Public Instance Methods
create(nft_id: nil, nft_count:, lovelace:)
click to toggle source
# File lib/nftmaker_api/client/reservations.rb, line 8 def create(nft_id: nil, nft_count:, lovelace:) if nft_id.blank? endpoint = "GetAddressForRandomNftSale/#{@client.api_key}/#{@project_id}/#{nft_count}/#{lovelace}" else endpoint = "GetAddressForSpecificNftSale/#{@client.api_key}/#{@project_id}/#{nft_id}/#{nft_count}/#{lovelace}" end @client.get endpoint end