Class: Sliver::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/sliver/runner.rb

Instance Method Summary collapse

Constructor Details

#initialize(klass, environment) ⇒ Runner

Returns a new instance of Runner.



4
5
6
7
8
9
# File 'lib/sliver/runner.rb', line 4

def initialize(klass, environment)
  @klass       = klass
  @environment = environment

  @guarded = false
end

Instance Method Details

#callObject



11
12
13
14
15
16
17
# File 'lib/sliver/runner.rb', line 11

def call
  pass_guards
  action.call unless skip_action?
  post_process

  response.to_a
end