Class: Lita::Interactors::ListServices

Inherits:
BaseInteractor show all
Defined in:
lib/lita/interactors/list_services.rb

Overview

List all services

Instance Attribute Summary collapse

Attributes inherited from BaseInteractor

#error, #handler, #message

Instance Method Summary collapse

Methods inherited from BaseInteractor

#repository, #success?

Constructor Details

#initialize(handler, data) ⇒ ListServices

Returns a new instance of ListServices.



8
9
10
11
# File 'lib/lita/interactors/list_services.rb', line 8

def initialize(handler, data)
  @handler = handler
  @data = data
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



6
7
8
# File 'lib/lita/interactors/list_services.rb', line 6

def data
  @data
end

Instance Method Details

#performObject



13
14
15
16
# File 'lib/lita/interactors/list_services.rb', line 13

def perform
  @message = services
  self
end