Class: NftmakerApi::Client::Reservation
- Inherits:
-
Object
- Object
- NftmakerApi::Client::Reservation
- Defined in:
- lib/nftmaker_api/client/reservation.rb
Instance Method Summary collapse
- #cancel ⇒ Object
- #check ⇒ Object
-
#initialize(client, project_id:, address:) ⇒ Reservation
constructor
A new instance of Reservation.
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
#cancel ⇒ Object
13 14 15 |
# File 'lib/nftmaker_api/client/reservation.rb', line 13 def cancel @client.get "CancelAddressReservation/#{@client.api_key}/#{@project_id}/#{@address}" end |
#check ⇒ Object
9 10 11 |
# File 'lib/nftmaker_api/client/reservation.rb', line 9 def check @client.get "CheckAddress/#{@client.api_key}/#{@project_id}/#{@address}" end |