Class: Deliverhq::Request::Domain
- Inherits:
-
Base
- Object
- Base
- Deliverhq::Request::Domain
show all
- Defined in:
- lib/deliverhq/request/domain/list.rb,
lib/deliverhq/request/domain/create.rb,
lib/deliverhq/request/domain/delete.rb
Class Method Summary
collapse
Methods inherited from Base
http_delete, http_get, http_post
Class Method Details
.create(params) ⇒ Object
6
7
8
|
# File 'lib/deliverhq/request/domain/create.rb', line 6
def self.create(params)
http_post('domains', params.to_json)
end
|
.destroy(id) ⇒ Object
5
6
7
8
|
# File 'lib/deliverhq/request/domain/delete.rb', line 5
def self.destroy(id)
http_delete("domains/#{id}")
true
end
|
.list ⇒ Object
5
6
7
|
# File 'lib/deliverhq/request/domain/list.rb', line 5
def self.list
http_get('domains')
end
|