Class: HotFlash::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



11
12
13
14
15
# File 'lib/hot_flash.rb', line 11

def initialize
  @turbo_action = "replace"
  @turbo_target = "#flashes"
  @flash_method = :render_flash
end

Instance Attribute Details

#flash_methodObject

Returns the value of attribute flash_method.



9
10
11
# File 'lib/hot_flash.rb', line 9

def flash_method
  @flash_method
end

#turbo_actionObject

Returns the value of attribute turbo_action.



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

def turbo_action
  @turbo_action
end

#turbo_targetObject

Returns the value of attribute turbo_target.



8
9
10
# File 'lib/hot_flash.rb', line 8

def turbo_target
  @turbo_target
end