Class: CirroIOV2::Resources::GigInvitation
- Inherits:
-
Base
- Object
- Base
- CirroIOV2::Resources::GigInvitation
show all
- Defined in:
- lib/cirro_io_v2/resources/gig_invitation.rb
Instance Attribute Summary
Attributes inherited from Base
#client
Instance Method Summary
collapse
Methods inherited from Base
#initialize, #resource_root
Instance Method Details
#accept(id, params = nil) ⇒ Object
9
10
11
12
|
# File 'lib/cirro_io_v2/resources/gig_invitation.rb', line 9
def accept(id, params = nil)
response = client.request_client.request(:post, "#{resource_root}/#{id}/accept", body: params)
Responses::GigInvitationResponse.new(response.body)
end
|
#expire(id) ⇒ Object
19
20
21
22
|
# File 'lib/cirro_io_v2/resources/gig_invitation.rb', line 19
def expire(id)
response = client.request_client.request(:post, "#{resource_root}/#{id}/expire")
Responses::GigInvitationResponse.new(response.body)
end
|
#list(params = nil) ⇒ Object
4
5
6
7
|
# File 'lib/cirro_io_v2/resources/gig_invitation.rb', line 4
def list(params = nil)
response = client.request_client.request(:get, resource_root, params:)
Responses::GigInvitationListResponse.new(response.body)
end
|
#reject(id) ⇒ Object
14
15
16
17
|
# File 'lib/cirro_io_v2/resources/gig_invitation.rb', line 14
def reject(id)
response = client.request_client.request(:post, "#{resource_root}/#{id}/reject")
Responses::GigInvitationResponse.new(response.body)
end
|
#reset(id, params = nil) ⇒ Object
24
25
26
27
|
# File 'lib/cirro_io_v2/resources/gig_invitation.rb', line 24
def reset(id, params = nil)
response = client.request_client.request(:post, "#{resource_root}/#{id}/reset", body: params)
Responses::GigInvitationResponse.new(response.body)
end
|