Class: Comunit::Network::Handlers::PollVoteHandler
- Inherits:
-
Comunit::Network::Handler
- Object
- Comunit::Network::Handler
- Comunit::Network::Handlers::PollVoteHandler
- Defined in:
- app/services/comunit/network/handlers/poll_vote_handler.rb
Overview
Handling polls
Constant Summary
Constants inherited from Comunit::Network::Handler
Comunit::Network::Handler::MAIN_HOST
Instance Attribute Summary
Attributes inherited from Comunit::Network::Handler
Instance Method Summary collapse
Methods inherited from Comunit::Network::Handler
[], #amend, #entity_class, ignored_attributes, #initialize, permitted_attributes, #pull, #pull_and_validate, #push, relationship_data
Methods included from Sending
Methods included from Logging
#log, #log_error, #log_info, #log_warn
Constructor Details
This class inherits a constructor from Comunit::Network::Handler
Instance Method Details
#prepare_model_data ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'app/services/comunit/network/handlers/poll_vote_handler.rb', line 8 def prepare_model_data { id: entity.uuid, type: entity.class.table_name, attributes: attributes_for_remote, relationships: relationships_for_remote, } end |