Class: Sipity::NullComment
- Inherits:
-
Object
- Object
- Sipity::NullComment
- Defined in:
- app/models/sipity/comment.rb
Overview
A comment without a database record; always returns an empty string
Instance Attribute Summary collapse
-
#agent ⇒ Object
readonly
Returns the value of attribute agent.
-
#entity ⇒ Object
readonly
Returns the value of attribute entity.
Instance Method Summary collapse
- #comment ⇒ String
-
#initialize(agent:, entity:) ⇒ NullComment
constructor
A new instance of NullComment.
Constructor Details
#initialize(agent:, entity:) ⇒ NullComment
Returns a new instance of NullComment.
20 21 22 23 |
# File 'app/models/sipity/comment.rb', line 20 def initialize(agent:, entity:) @agent = agent @entity = entity end |
Instance Attribute Details
#agent ⇒ Object (readonly)
Returns the value of attribute agent.
18 19 20 |
# File 'app/models/sipity/comment.rb', line 18 def agent @agent end |
#entity ⇒ Object (readonly)
Returns the value of attribute entity.
18 19 20 |
# File 'app/models/sipity/comment.rb', line 18 def entity @entity end |
Instance Method Details
#comment ⇒ String
27 28 29 |
# File 'app/models/sipity/comment.rb', line 27 def comment '' end |