Class: Hexagonal::Runners::FilterRunner
- Inherits:
-
Object
- Object
- Hexagonal::Runners::FilterRunner
- Defined in:
- lib/hexagonal/runners/filter_runner.rb
Instance Attribute Summary collapse
-
#form ⇒ Object
writeonly
Sets the attribute form.
-
#repository ⇒ Object
writeonly
Sets the attribute repository.
Instance Method Summary collapse
-
#initialize(listener, user, attributes = nil) ⇒ FilterRunner
constructor
A new instance of FilterRunner.
- #run ⇒ Object
Constructor Details
#initialize(listener, user, attributes = nil) ⇒ FilterRunner
Returns a new instance of FilterRunner.
8 9 10 11 12 |
# File 'lib/hexagonal/runners/filter_runner.rb', line 8 def initialize(listener, user, attributes = nil) @listener = listener @user = user @attributes = attributes end |
Instance Attribute Details
#form=(value) ⇒ Object (writeonly)
Sets the attribute form
4 5 6 |
# File 'lib/hexagonal/runners/filter_runner.rb', line 4 def form=(value) @form = value end |
#repository=(value) ⇒ Object (writeonly)
Sets the attribute repository
4 5 6 |
# File 'lib/hexagonal/runners/filter_runner.rb', line 4 def repository=(value) @repository = value end |
Instance Method Details
#run ⇒ Object
14 15 16 17 18 19 |
# File 'lib/hexagonal/runners/filter_runner.rb', line 14 def run validate! if attributes found items rescue Hexagonal::Errors::RecordInvalidException => ex invalid ex end |