Class: CirroIOV2::Resources::SpaceInvitation
- Inherits:
-
Base
- Object
- Base
- CirroIOV2::Resources::SpaceInvitation
show all
- Defined in:
- lib/cirro_io_v2/resources/space_invitation.rb
Instance Attribute Summary
Attributes inherited from Base
#client
Instance Method Summary
collapse
Methods inherited from Base
#initialize, #resource_root
Instance Method Details
#create(params) ⇒ Object
4
5
6
7
|
# File 'lib/cirro_io_v2/resources/space_invitation.rb', line 4
def create(params)
response = client.request_client.request(:post, resource_root, body: params)
Responses::SpaceInvitationResponse.new(response.body)
end
|
#expire(id) ⇒ Object
9
10
11
12
|
# File 'lib/cirro_io_v2/resources/space_invitation.rb', line 9
def expire(id)
response = client.request_client.request(:post, "#{resource_root}/#{id}/expire")
Responses::SpaceInvitationResponse.new(response.body)
end
|