Class: Unitpost::Resources::Domains
- Inherits:
-
Base
- Object
- Base
- Unitpost::Resources::Domains
show all
- Defined in:
- lib/unitpost/resources.rb
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#create(body) ⇒ Object
347
348
349
|
# File 'lib/unitpost/resources.rb', line 347
def create(body)
@http.request("POST", "/domains", body: body)
end
|
#delete(id) ⇒ Object
355
356
357
|
# File 'lib/unitpost/resources.rb', line 355
def delete(id)
@http.request("DELETE", "/domains/#{enc(id)}")
end
|
#get(id) ⇒ Object
351
352
353
|
# File 'lib/unitpost/resources.rb', line 351
def get(id)
@http.request("GET", "/domains/#{enc(id)}")
end
|
#list(limit: nil, after: nil, before: nil) ⇒ Object
339
340
341
|
# File 'lib/unitpost/resources.rb', line 339
def list(limit: nil, after: nil, before: nil)
@http.request("GET", "/domains", query: list_params(limit: limit, after: after, before: before))
end
|
#list_all(**params) ⇒ Object
343
344
345
|
# File 'lib/unitpost/resources.rb', line 343
def list_all(**params)
paginate("/domains", params)
end
|
#update(id, body) ⇒ Object
359
360
361
|
# File 'lib/unitpost/resources.rb', line 359
def update(id, body)
@http.request("PATCH", "/domains/#{enc(id)}", body: body)
end
|
#verify(id) ⇒ Object
363
364
365
|
# File 'lib/unitpost/resources.rb', line 363
def verify(id)
@http.request("POST", "/domains/#{enc(id)}/verify")
end
|