Class: NftmakerApi::Client::Reservation

Inherits:
Object
  • Object
show all
Defined in:
lib/nftmaker_api/client/reservation.rb

Instance Method Summary collapse

Constructor Details

#initialize(client, project_id:, address:) ⇒ Reservation

Returns a new instance of Reservation.



3
4
5
6
7
# File 'lib/nftmaker_api/client/reservation.rb', line 3

def initialize(client, project_id:, address:)
  @client = client
  @project_id = project_id
  @address = address
end

Instance Method Details

#cancelObject



13
14
15
# File 'lib/nftmaker_api/client/reservation.rb', line 13

def cancel
  @client.get "CancelAddressReservation/#{@client.api_key}/#{@project_id}/#{@address}"
end

#checkObject



9
10
11
# File 'lib/nftmaker_api/client/reservation.rb', line 9

def check
  @client.get "CheckAddress/#{@client.api_key}/#{@project_id}/#{@address}"
end