Class: DiasporaFederation::Entities::EventParticipation

Inherits:
DiasporaFederation::Entity show all
Includes:
Relayable
Defined in:
lib/diaspora_federation/entities/event_participation.rb

Overview

This entity represents a participation in an event, i.e. it is issued when a user responds to en event.

Constant Summary collapse

PARENT_TYPE =
"Event"

Constants included from Signable

Signable::DIGEST

Constants inherited from DiasporaFederation::Entity

DiasporaFederation::Entity::ENTITY_NAME_REGEX, DiasporaFederation::Entity::INVALID_XML_REGEX

Instance Attribute Summary collapse

Attributes included from Relayable

#additional_data, #author, #author_signature, #guid, #parent, #parent_guid

Method Summary

Methods included from Relayable

included, #initialize, #sender_valid?, #signature_order, #to_json, #to_s, #verify_signature

Methods included from Signable

#sign_with_key, #signature_data, #verify_signature

Methods included from Logging

included

Methods inherited from DiasporaFederation::Entity

class_name, entity_class, entity_name, from_hash, from_json, from_xml, #initialize, #to_h, #to_json, #to_s, #to_xml

Methods included from PropertiesDSL

#class_props, #default_values, #entity, #missing_props, #optional_props, #property, #resolv_aliases

Instance Attribute Details

#edited_atTime (readonly)

The timestamp when the event participation was edited

Returns:

  • (Time)

    edited time



23
# File 'lib/diaspora_federation/entities/event_participation.rb', line 23

property :edited_at, :timestamp, optional: true

#statusString (readonly)

The participation status of the user “accepted”, “declined” or “tentative”

Returns:

  • (String)

    event participation status



18
# File 'lib/diaspora_federation/entities/event_participation.rb', line 18

property :status, :string