Class: HelloSign::Proxy::Team

Inherits:
Object
  • Object
show all
Defined in:
lib/hello_sign/proxy/team.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Team

Returns a new instance of Team.



6
7
8
# File 'lib/hello_sign/proxy/team.rb', line 6

def initialize(client)
  @client = client
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



4
5
6
# File 'lib/hello_sign/proxy/team.rb', line 4

def client
  @client
end

Instance Method Details

#add_member(params = {}) ⇒ Object



26
27
28
# File 'lib/hello_sign/proxy/team.rb', line 26

def add_member(params = {})
  client.post('/team/add_member', body: params)
end

#create(params = {}) ⇒ Object



10
11
12
# File 'lib/hello_sign/proxy/team.rb', line 10

def create(params = {})
  client.post('/team/create', body: params)
end

#destroyObject



22
23
24
# File 'lib/hello_sign/proxy/team.rb', line 22

def destroy
  client.post('/team/destroy')
end

#remove_member(params = {}) ⇒ Object



30
31
32
# File 'lib/hello_sign/proxy/team.rb', line 30

def remove_member(params = {})
  client.post('/team/remove_member', body: params)
end

#showObject



14
15
16
# File 'lib/hello_sign/proxy/team.rb', line 14

def show
  client.get('/team')
end

#update(params = {}) ⇒ Object



18
19
20
# File 'lib/hello_sign/proxy/team.rb', line 18

def update(params = {})
  client.post('/team', body: params)
end