class Calendly::OrganizationInvitation
Calendly's organization invitation model.
Constants
- ASSOCIATION
- TIME_FIELDS
- UUID_RE
Attributes
@return [Time] Moment when user record was first created.
@return [String] Invited person's email.
@return [Time] Moment when the last invitation was sent.
@return [Organization] Reference to Organization
associated with this invitation.
@return [String] Invitation status.
@return [Time] Moment when user record was last updated.
@return [String] Canonical resource reference.
@return [User] If a person accepted the invitation, a reference to their User
.
@return [String] unique id of the OrganizationInvitation
object.
Public Instance Methods
Revoke self Invitation.
@return [true] @raise [Calendly::Error] if the organization.uuid is empty. @raise [Calendly::Error] if the uuid is empty. @raise [Calendly::ApiError] if the api returns error code. @since 0.1.0
# File lib/calendly/models/organization_invitation.rb, line 73 def delete org_uuid = organization.uuid if organization client.delete_invitation org_uuid, uuid end
Get Organization
Invitation associated with self.
@return [Calendly::OrganizationInvitation] @raise [Calendly::Error] if the organization.uuid is empty. @raise [Calendly::Error] if the uuid is empty. @raise [Calendly::ApiError] if the api returns error code. @since 0.1.0
# File lib/calendly/models/organization_invitation.rb, line 60 def fetch org_uuid = organization.uuid if organization client.invitation org_uuid, uuid end