Module: UseCases::ModuleOptins::Locked::DSL

Defined in:
lib/use_cases/module_optins/locked.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#_lock_optionsObject (readonly)

Returns the value of attribute _lock_options.



20
21
22
# File 'lib/use_cases/module_optins/locked.rb', line 20

def _lock_options
  @_lock_options
end

#_lock_withObject (readonly)

Returns the value of attribute _lock_with.



20
21
22
# File 'lib/use_cases/module_optins/locked.rb', line 20

def _lock_with
  @_lock_with
end

Instance Method Details

#lock_with(options = {}, &blk) ⇒ Object



22
23
24
25
# File 'lib/use_cases/module_optins/locked.rb', line 22

def lock_with(options = {}, &blk)
  @_lock_with = blk || options.delete(:key)
  @_lock_options = options
end