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
357
358
359
|
# File 'lib/unitpost/resources.rb', line 357
def create(body)
@http.request("POST", "/email/domains", body: body)
end
|
#delete(id) ⇒ Object
365
366
367
|
# File 'lib/unitpost/resources.rb', line 365
def delete(id)
@http.request("DELETE", "/email/domains/#{enc(id)}")
end
|
#get(id) ⇒ Object
361
362
363
|
# File 'lib/unitpost/resources.rb', line 361
def get(id)
@http.request("GET", "/email/domains/#{enc(id)}")
end
|
#list(limit: nil, after: nil, before: nil) ⇒ Object
349
350
351
|
# File 'lib/unitpost/resources.rb', line 349
def list(limit: nil, after: nil, before: nil)
@http.request("GET", "/email/domains", query: list_params(limit: limit, after: after, before: before))
end
|
#list_all(**params) ⇒ Object
353
354
355
|
# File 'lib/unitpost/resources.rb', line 353
def list_all(**params)
paginate("/email/domains", params)
end
|
#update(id, body) ⇒ Object
369
370
371
|
# File 'lib/unitpost/resources.rb', line 369
def update(id, body)
@http.request("PATCH", "/email/domains/#{enc(id)}", body: body)
end
|
#verify(id) ⇒ Object
373
374
375
|
# File 'lib/unitpost/resources.rb', line 373
def verify(id)
@http.request("POST", "/email/domains/#{enc(id)}/verify")
end
|