Class: PlatformAPI::Invitation
- Inherits:
-
Object
- Object
- PlatformAPI::Invitation
- Defined in:
- lib/platform-api/client.rb
Overview
An invitation represents an invite sent to a user to use the Heroku platform.
Instance Method Summary collapse
-
#finalize_invitation(invitation_token, body = {}) ⇒ Object
Finalize Invitation and Create Account.
-
#info(invitation_token) ⇒ Object
Info for invitation.
-
#initialize(client) ⇒ Invitation
constructor
A new instance of Invitation.
-
#invitation(body = {}) ⇒ Object
Invite a user.
Constructor Details
#initialize(client) ⇒ Invitation
Returns a new instance of Invitation.
1295 1296 1297 |
# File 'lib/platform-api/client.rb', line 1295 def initialize(client) @client = client end |
Instance Method Details
#finalize_invitation(invitation_token, body = {}) ⇒ Object
Finalize Invitation and Create Account.
1310 1311 1312 |
# File 'lib/platform-api/client.rb', line 1310 def finalize_invitation(invitation_token, body = {}) @client.invitation.finalize_invitation(invitation_token, body) end |
#info(invitation_token) ⇒ Object
Info for invitation.
1302 1303 1304 |
# File 'lib/platform-api/client.rb', line 1302 def info(invitation_token) @client.invitation.info(invitation_token) end |
#invitation(body = {}) ⇒ Object
Invite a user.
1317 1318 1319 |
# File 'lib/platform-api/client.rb', line 1317 def invitation(body = {}) @client.invitation.invitation(body) end |