Class: PollParticipation::Generator

Inherits:
Diaspora::Federated::Generator show all
Defined in:
app/models/poll_participation.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Diaspora::Federated::Generator

#build, #create!

Constructor Details

#initialize(person, target, poll_answer) ⇒ Generator

Returns a new instance of Generator.


37
38
39
40
# File 'app/models/poll_participation.rb', line 37

def initialize(person, target, poll_answer)
  @poll_answer = poll_answer
  super(person, target)
end

Class Method Details

.federated_classObject


33
34
35
# File 'app/models/poll_participation.rb', line 33

def self.federated_class
  PollParticipation
end

Instance Method Details

#relayable_optionsObject


42
43
44
# File 'app/models/poll_participation.rb', line 42

def relayable_options
  {:poll => @target.poll, :poll_answer => @poll_answer}
end