Class: Lita::Interactors::ListServices
- Inherits:
-
BaseInteractor
- Object
- BaseInteractor
- Lita::Interactors::ListServices
- Defined in:
- lib/lita/interactors/list_services.rb
Overview
List all services
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Attributes inherited from BaseInteractor
Instance Method Summary collapse
-
#initialize(handler, data) ⇒ ListServices
constructor
A new instance of ListServices.
- #perform ⇒ Object
Methods inherited from BaseInteractor
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
#data ⇒ Object (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
#perform ⇒ Object
13 14 15 16 |
# File 'lib/lita/interactors/list_services.rb', line 13 def perform @message = services self end |