Class: DiasporaFederation::Entities::PollAnswer

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

Overview

This entity represents a poll answer and is federated as a part of the Poll entity.

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

#answerString (readonly)

Text of the answer

Returns:

  • (String)

    answer



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

property :answer, :string

#guidString (readonly)

A random string of at least 16 chars

Returns:

  • (String)

    guid

See Also:



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

property :guid, :string