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.
8722 8723 8724 8725 |
# File 'lib/infrawrench/client.rb', line 8722 def initialize(transport) @transport = transport @by_token = InvitationsByTokenNamespace.new(@transport) end |
Instance Attribute Details
#by_token ⇒ InvitationsByTokenNamespace (readonly)
Returns client.invitations.by_token.
8718 8719 8720 |
# File 'lib/infrawrench/client.rb', line 8718 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
8740 8741 8742 8743 8744 8745 8746 8747 |
# File 'lib/infrawrench/client.rb', line 8740 def accept(body:, request_options: nil) @transport.request( http_method: "POST", path: "/api/invitations/accept", body: body, request_options: ) end |