class Daino::Clients::Organization
Public Instance Methods
create(name:, description:, status: "Active")
click to toggle source
# File lib/daino/clients/organization.rb, line 22 def create(name:, description:, status: "Active") payload = { name: name, description: description, status: status } post("/api/organization", payload) { |json| json } end
delete_by_id(id)
click to toggle source
# File lib/daino/clients/organization.rb, line 27 def delete_by_id(id) delete("/api/organization/#{id}") { |res| res } end
get_by_id(id)
click to toggle source
# File lib/daino/clients/organization.rb, line 14 def get_by_id(id) get("/api/organization/#{id}") { |json| json } end
list()
click to toggle source
# File lib/daino/clients/organization.rb, line 6 def list get("/api/organization") { |json| json } end
search(attributes)
click to toggle source
# File lib/daino/clients/organization.rb, line 10 def search(attributes) post("/api/organization/_search", query: attributes) { |json| json } end
users(id)
click to toggle source
# File lib/daino/clients/organization.rb, line 18 def users(id) get("/api/organization/#{id}/user") { |json| json } end