Class: Comment::Generator

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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Diaspora::Federated::Generator

#build, #create!

Constructor Details

#initialize(person, target, text) ⇒ Generator

Returns a new instance of Generator.



74
75
76
77
# File 'app/models/comment.rb', line 74

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

Class Method Details

.federated_classObject



70
71
72
# File 'app/models/comment.rb', line 70

def self.federated_class
  Comment
end

Instance Method Details

#relayable_optionsObject



79
80
81
# File 'app/models/comment.rb', line 79

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