Class: Comment::Generator
- Inherits:
-
Diaspora::Federated::Generator
- Object
- Diaspora::Federated::Generator
- Comment::Generator
- Defined in:
- app/models/comment.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(person, target, text) ⇒ Generator
constructor
A new instance of Generator.
- #relayable_options ⇒ Object
Methods inherited from Diaspora::Federated::Generator
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_class ⇒ Object
70 71 72 |
# File 'app/models/comment.rb', line 70 def self.federated_class Comment end |
Instance Method Details
#relayable_options ⇒ Object
79 80 81 |
# File 'app/models/comment.rb', line 79 def {post: @target, text: @text} end |