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.


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

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

Class Method Details

.federated_classObject


64
65
66
# File 'app/models/comment.rb', line 64

def self.federated_class
  Comment
end

Instance Method Details

#relayable_optionsObject


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

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