Module: Pavlov::Helpers

Included in:
Operation
Defined in:
lib/pavlov/helpers.rb

Instance Method Summary collapse

Instance Method Details

#command(name, hash = {}) ⇒ Object



11
12
13
# File 'lib/pavlov/helpers.rb', line 11

def command name, hash = {}
  Pavlov.command name, with_pavlov_options(hash)
end

#interactor(name, hash = {}) ⇒ Object



3
4
5
# File 'lib/pavlov/helpers.rb', line 3

def interactor name, hash = {}
  Pavlov.interactor name, with_pavlov_options(hash)
end

#pavlov_optionsObject



15
16
17
# File 'lib/pavlov/helpers.rb', line 15

def pavlov_options
  {}
end

#query(name, hash = {}) ⇒ Object



7
8
9
# File 'lib/pavlov/helpers.rb', line 7

def query name, hash = {}
  Pavlov.query name, with_pavlov_options(hash)
end