Class: LWS::Presence::Appointment

Inherits:
Generic::Model show all
Defined in:
lib/lws/apps/presence.rb

Overview

Note:

This class is only used within the context of either the Location or the Person class.

The appointment class

Instance Attribute Summary collapse

Attributes inherited from Generic::Model

#created_at, #id, #updated_at, #url, #url_html

Method Summary

Methods inherited from Generic::Model

#deep_dup, #dig, #reload, #rollback, #save

Instance Attribute Details

#datetime_endString

Returns the timestamp of the end of the appointment.

Returns:

  • (String)

    the timestamp of the end of the appointment



48
# File 'lib/lws/apps/presence.rb', line 48

attribute :datetime_end

#datetime_startString

Returns the timestamp of the start of the appointment.

Returns:

  • (String)

    the timestamp of the start of the appointment



52
# File 'lib/lws/apps/presence.rb', line 52

attribute :datetime_start

#descriptionString

Returns the description of the appointment.

Returns:

  • (String)

    the description of the appointment



56
# File 'lib/lws/apps/presence.rb', line 56

attribute :description

#inviteString

Returns the original invite body of the appointment.

Returns:

  • (String)

    the original invite body of the appointment



60
# File 'lib/lws/apps/presence.rb', line 60

attribute :invite

#locationInteger

Returns the ID of the location of the appointment.

Returns:

  • (Integer)

    the ID of the location of the appointment



64
# File 'lib/lws/apps/presence.rb', line 64

belongs_to :location, uri: "locations/:id"

#organiserPerson

Returns the organiser of the appointment.

Returns:

  • (Person)

    the organiser of the appointment



72
# File 'lib/lws/apps/presence.rb', line 72

belongs_to :organiser, class_name: "LWS::Presence::Person"

#organiser_idFixnum

Returns the ID of the organiser of the appointment.

Returns:

  • (Fixnum)

    the ID of the organiser of the appointment



76
# File 'lib/lws/apps/presence.rb', line 76

attribute :organiser_id

#peopleArray<Person>

Returns the people associated with the appointment.

Returns:

  • (Array<Person>)

    the people associated with the appointment



85
# File 'lib/lws/apps/presence.rb', line 85

has_many :people

#person_idsArray<Integer>

Returns the IDs of the people associated with the appointment.

Returns:

  • (Array<Integer>)

    the IDs of the people associated with the appointment



81
# File 'lib/lws/apps/presence.rb', line 81

attribute :person_ids

#titleString

Returns the title of the appointment.

Returns:

  • (String)

    the title of the appointment



89
# File 'lib/lws/apps/presence.rb', line 89

attribute :title

#uuidString

Returns the UUID of the appointment.

Returns:

  • (String)

    the UUID of the appointment



93
# File 'lib/lws/apps/presence.rb', line 93

attribute :uuid