Class: Sipity::NullComment

Inherits:
Object
  • Object
show all
Defined in:
app/models/sipity/comment.rb

Overview

A comment without a database record; always returns an empty string

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#agentObject (readonly)

Returns the value of attribute agent.


18
19
20
# File 'app/models/sipity/comment.rb', line 18

def agent
  @agent
end

#entityObject (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

#commentString

Returns:

  • (String)

27
28
29
# File 'app/models/sipity/comment.rb', line 27

def comment
  ''
end