Class: Boldsign::Resources::Team

Inherits:
Boldsign::Resource show all
Defined in:
lib/boldsign/resources/team.rb

Overview

Team endpoints (‘/v1/teams/*`).

Instance Method Summary collapse

Methods inherited from Boldsign::Resource

#initialize

Constructor Details

This class inherits a constructor from Boldsign::Resource

Instance Method Details

#create(body) ⇒ Object



7
# File 'lib/boldsign/resources/team.rb', line 7

def create(body);   @client.post("/v1/teams/create", body: body); end

#get(team_id) ⇒ Object



6
# File 'lib/boldsign/resources/team.rb', line 6

def get(team_id);   @client.get("/v1/teams/get", teamId: team_id); end

#list(**params) ⇒ Object



5
# File 'lib/boldsign/resources/team.rb', line 5

def list(**params); @client.get("/v1/teams/list", params); end

#update(body, **params) ⇒ Object



8
# File 'lib/boldsign/resources/team.rb', line 8

def update(body, **params); @client.put("/v1/teams/update", body: body, params: params); end