Class: SystemNotes::BaseService

Inherits:
Object
  • Object
show all
Defined in:
app/services/system_notes/base_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(noteable: nil, author: nil, project: nil) ⇒ BaseService

Returns a new instance of BaseService.



7
8
9
10
11
# File 'app/services/system_notes/base_service.rb', line 7

def initialize(noteable: nil, author: nil, project: nil)
  @noteable = noteable
  @project = project
  @author = author
end

Instance Attribute Details

#authorObject (readonly)

Returns the value of attribute author.



5
6
7
# File 'app/services/system_notes/base_service.rb', line 5

def author
  @author
end

#noteableObject (readonly)

Returns the value of attribute noteable.



5
6
7
# File 'app/services/system_notes/base_service.rb', line 5

def noteable
  @noteable
end

#projectObject (readonly)

Returns the value of attribute project.



5
6
7
# File 'app/services/system_notes/base_service.rb', line 5

def project
  @project
end