Class: DiasporaFederation::Entities::Event

Inherits:
DiasporaFederation::Entity show all
Defined in:
lib/diaspora_federation/entities/event.rb

Overview

This entity represents an event and it is federated as a part of a status message.

Constant Summary

Constants inherited from DiasporaFederation::Entity

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

Instance Attribute Summary collapse

Method Summary

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

Methods included from Logging

included

Constructor Details

This class inherits a constructor from DiasporaFederation::Entity

Instance Attribute Details

#all_dayBoolean (readonly)

Points if the event is an all day event

Returns:

  • (Boolean)

    is it an all day event



49
# File 'lib/diaspora_federation/entities/event.rb', line 49

property :all_day, :boolean, optional: true, default: false

#authorString (readonly)

The diaspora* ID of the person who created the event

Returns:

  • (String)

    author diaspora* ID

See Also:



13
# File 'lib/diaspora_federation/entities/event.rb', line 13

property :author, :string

#descriptionString (readonly)

Description of the event

Returns:

  • (String)

    event description



34
# File 'lib/diaspora_federation/entities/event.rb', line 34

property :description, :string, alias: :text, optional: true

#edited_atTime (readonly)

The timestamp when the event was edited

Returns:

  • (Time)

    edited time



24
# File 'lib/diaspora_federation/entities/event.rb', line 24

property :edited_at, :timestamp, optional: true

#endString (readonly)

The end time of the event

Returns:

  • (String)

    event end



44
# File 'lib/diaspora_federation/entities/event.rb', line 44

property :end, :timestamp, optional: true

#guidString (readonly)

A random string of at least 16 chars

Returns:

  • (String)

    guid

See Also:



19
# File 'lib/diaspora_federation/entities/event.rb', line 19

property :guid, :string

#locationEntities::Location (readonly)

Location of the event

Returns:



59
# File 'lib/diaspora_federation/entities/event.rb', line 59

entity :location, Entities::Location, optional: true

#startString (readonly)

The start time of the event

Returns:

  • (String)

    event start



39
# File 'lib/diaspora_federation/entities/event.rb', line 39

property :start, :timestamp

#summaryString (readonly)

The summary of the event

Returns:

  • (String)

    event summary



29
# File 'lib/diaspora_federation/entities/event.rb', line 29

property :summary, :string

#timezoneString (readonly)

Timezone to which the event is fixed to

Returns:

  • (String)

    timezone



54
# File 'lib/diaspora_federation/entities/event.rb', line 54

property :timezone, :string, optional: true