Class: PollParticipation::Generator

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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Federated::Generator

#build, #create!

Constructor Details

#initialize(person, target, poll_answer) ⇒ Generator


57
58
59
60
# File 'app/models/poll_participation.rb', line 57

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

Class Method Details

.federated_classObject


53
54
55
# File 'app/models/poll_participation.rb', line 53

def self.federated_class
  PollParticipation
end

Instance Method Details

#relayable_optionsObject


62
63
64
# File 'app/models/poll_participation.rb', line 62

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