Class: Infrawrench::InvitationsNamespace
- Inherits:
-
Object
- Object
- Infrawrench::InvitationsNamespace
- Defined in:
- lib/infrawrench/client.rb,
sig/infrawrench/sdk.rbs
Overview
client.invitations
Instance Attribute Summary collapse
-
#by_token ⇒ InvitationsByTokenNamespace
readonly
client.invitations.by_token.
Instance Method Summary collapse
-
#accept(body:, request_options: nil) ⇒ Hash
Accept an invitation.
-
#initialize(transport) ⇒ InvitationsNamespace
constructor
private
A new instance of InvitationsNamespace.
Constructor Details
#initialize(transport) ⇒ InvitationsNamespace
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of InvitationsNamespace.
1826 1827 1828 1829 |
# File 'lib/infrawrench/client.rb', line 1826 def initialize(transport) @transport = transport @by_token = InvitationsByTokenNamespace.new(@transport) end |
Instance Attribute Details
#by_token ⇒ InvitationsByTokenNamespace (readonly)
Returns client.invitations.by_token.
1822 1823 1824 |
# File 'lib/infrawrench/client.rb', line 1822 def by_token @by_token end |
Instance Method Details
#accept(body:, request_options: nil) ⇒ Hash
Accept an invitation
POST /api/invitations/accept
Raises on 400: Bad request
Raises on 403: Forbidden
1844 1845 1846 1847 1848 1849 1850 1851 |
# File 'lib/infrawrench/client.rb', line 1844 def accept(body:, request_options: nil) @transport.request( http_method: "POST", path: "/api/invitations/accept", body: body, request_options: ) end |