Class: AdequateExposure::Flow

Inherits:
Object
  • Object
show all
Defined in:
lib/adequate_exposure/flow.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(controller, options) ⇒ Flow

Returns a new instance of Flow.



6
7
8
# File 'lib/adequate_exposure/flow.rb', line 6

def initialize(controller, options)
  @controller, @options = controller, options.with_indifferent_access
end

Instance Attribute Details

#controllerObject (readonly)

Returns the value of attribute controller.



3
4
5
# File 'lib/adequate_exposure/flow.rb', line 3

def controller
  @controller
end

#optionsObject (readonly)

Returns the value of attribute options.



3
4
5
# File 'lib/adequate_exposure/flow.rb', line 3

def options
  @options
end

Instance Method Details

#nameObject



10
11
12
# File 'lib/adequate_exposure/flow.rb', line 10

def name
  options.fetch(:name)
end