Class: Comment::Generator

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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Federated::Generator

#build, #create!

Constructor Details

#initialize(person, target, text) ⇒ Generator


95
96
97
98
# File 'app/models/comment.rb', line 95

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

Class Method Details

.federated_classObject


91
92
93
# File 'app/models/comment.rb', line 91

def self.federated_class
  Comment
end

Instance Method Details

#relayable_optionsObject


100
101
102
# File 'app/models/comment.rb', line 100

def relayable_options
  {:post => @target, :text => @text}
end