Class: Calendly::InviteeNoShow

Inherits:
Object
  • Object
show all
Includes:
ModelUtils
Defined in:
lib/calendly/models/invitee_no_show.rb

Overview

Calendly's invitee no show model.

Constant Summary collapse

UUID_RE =
%r{\A#{Client::API_HOST}/invitee_no_shows/(#{UUID_FORMAT})\z}.freeze
TIME_FIELDS =
%i[created_at].freeze

Constants included from ModelUtils

ModelUtils::UUID_FORMAT

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from ModelUtils

#client, #id, included, #initialize, #inspect

Instance Attribute Details

#created_atTime

The moment when the no show was created.

Returns:

  • (Time)


26
27
28
# File 'lib/calendly/models/invitee_no_show.rb', line 26

def created_at
  @created_at
end

#inviteeCalendly::Invitee?

The associated Invitee.

Returns:



30
31
32
# File 'lib/calendly/models/invitee_no_show.rb', line 30

def invitee
  @invitee
end

#uriString

Canonical reference (unique identifier) for the no show.

Returns:

  • (String)


22
23
24
# File 'lib/calendly/models/invitee_no_show.rb', line 22

def uri
  @uri
end

#uuidString

unique id of the InviteeNoShow object.

Returns:

  • (String)


18
19
20
# File 'lib/calendly/models/invitee_no_show.rb', line 18

def uuid
  @uuid
end

Class Method Details

.associationObject



10
11
12
13
14
# File 'lib/calendly/models/invitee_no_show.rb', line 10

def self.association
  {
    invitee: Invitee
  }
end

Instance Method Details

#deletetrue

Unmarks as a No Show.

Returns:

  • (true)

Raises:

Since:

  • 0.9.0



50
51
52
# File 'lib/calendly/models/invitee_no_show.rb', line 50

def delete
  client.delete_invitee_no_show uuid
end

#fetchCalendly::InviteeNoShow

Get Invitee No Show associated with self.

Returns:

Raises:

Since:

  • 0.9.0



39
40
41
# File 'lib/calendly/models/invitee_no_show.rb', line 39

def fetch
  client.invitee_no_show uuid
end