Class: DiasporaFederation::Entities::Event
- Inherits:
-
DiasporaFederation::Entity
- Object
- DiasporaFederation::Entity
- DiasporaFederation::Entities::Event
- 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
-
#all_day ⇒ Boolean
readonly
Points if the event is an all day event.
-
#author ⇒ String
readonly
The diaspora* ID of the person who created the event.
-
#description ⇒ String
readonly
Description of the event.
-
#edited_at ⇒ Time
readonly
The timestamp when the event was edited.
-
#end ⇒ String
readonly
The end time of the event.
-
#guid ⇒ String
readonly
A random string of at least 16 chars.
-
#location ⇒ Entities::Location
readonly
Location of the event.
-
#start ⇒ String
readonly
The start time of the event.
-
#summary ⇒ String
readonly
The summary of the event.
-
#timezone ⇒ String
readonly
Timezone to which the event is fixed to.
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
Constructor Details
This class inherits a constructor from DiasporaFederation::Entity
Instance Attribute Details
#all_day ⇒ Boolean (readonly)
Points if the event is an all day event
49 |
# File 'lib/diaspora_federation/entities/event.rb', line 49 property :all_day, :boolean, optional: true, default: false |
#author ⇒ String (readonly)
The diaspora* ID of the person who created the event
13 |
# File 'lib/diaspora_federation/entities/event.rb', line 13 property :author, :string |
#description ⇒ String (readonly)
Description of the event
34 |
# File 'lib/diaspora_federation/entities/event.rb', line 34 property :description, :string, alias: :text, optional: true |
#edited_at ⇒ Time (readonly)
The timestamp when the event was edited
24 |
# File 'lib/diaspora_federation/entities/event.rb', line 24 property :edited_at, :timestamp, optional: true |
#end ⇒ String (readonly)
The end time of the event
44 |
# File 'lib/diaspora_federation/entities/event.rb', line 44 property :end, :timestamp, optional: true |
#guid ⇒ String (readonly)
A random string of at least 16 chars
19 |
# File 'lib/diaspora_federation/entities/event.rb', line 19 property :guid, :string |
#location ⇒ Entities::Location (readonly)
Location of the event
59 |
# File 'lib/diaspora_federation/entities/event.rb', line 59 entity :location, Entities::Location, optional: true |
#start ⇒ String (readonly)
The start time of the event
39 |
# File 'lib/diaspora_federation/entities/event.rb', line 39 property :start, :timestamp |
#summary ⇒ String (readonly)
The summary of the event
29 |
# File 'lib/diaspora_federation/entities/event.rb', line 29 property :summary, :string |
#timezone ⇒ String (readonly)
Timezone to which the event is fixed to
54 |
# File 'lib/diaspora_federation/entities/event.rb', line 54 property :timezone, :string, optional: true |