Class: HelloSign::Proxy::Team
- Inherits:
-
Object
- Object
- HelloSign::Proxy::Team
- Defined in:
- lib/hello_sign/proxy/team.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
- #add_member(params = {}) ⇒ Object
- #create(params = {}) ⇒ Object
- #destroy ⇒ Object
-
#initialize(client) ⇒ Team
constructor
A new instance of Team.
- #remove_member(params = {}) ⇒ Object
- #show ⇒ Object
- #update(params = {}) ⇒ Object
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
#client ⇒ Object (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 |
#destroy ⇒ Object
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 |
#show ⇒ Object
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 |