Sha256: 43b0099994e74e80b91b7be4db788173a33d96fe50f0c177ae75752fc7dbe182
Contents?: true
Size: 1.26 KB
Versions: 3
Compression:
Stored size: 1.26 KB
Contents
# frozen_string_literal: true module Calendly # Calendly's invitee no show model. class InviteeNoShow include ModelUtils UUID_RE = %r{\A#{Client::API_HOST}/invitee_no_shows/(#{UUID_FORMAT})\z}.freeze TIME_FIELDS = %i[created_at].freeze def self.association { invitee: Invitee } end # @return [String] # unique id of the InviteeNoShow object. attr_accessor :uuid # @return [String] # Canonical reference (unique identifier) for the no show. attr_accessor :uri # @return [Time] # The moment when the no show was created. attr_accessor :created_at # @return [Calendly::Invitee, nil] # The associated Invitee. attr_accessor :invitee # # Get Invitee No Show associated with self. # # @return [Calendly::InviteeNoShow] # @raise [Calendly::Error] if the uuid is empty. # @raise [Calendly::ApiError] if the api returns error code. # @since 0.9.0 def fetch client.invitee_no_show uuid end # # Unmarks as a No Show. # # @return [true] # @raise [Calendly::Error] if the uuid is empty. # @raise [Calendly::ApiError] if the api returns error code. # @since 0.9.0 def delete client.delete_invitee_no_show uuid end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
calendly-0.14.0 | lib/calendly/models/invitee_no_show.rb |
calendly-0.13.0 | lib/calendly/models/invitee_no_show.rb |
calendly-0.12.0 | lib/calendly/models/invitee_no_show.rb |