Class: Voltron::Config::Flash

Inherits:
Object
  • Object
show all
Defined in:
lib/voltron/config/flash.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFlash

Returns a new instance of Flash.



22
23
24
25
# File 'lib/voltron/config/flash.rb', line 22

def initialize
  @header ||= 'X-Flash'
  @group = true unless @group === false
end

Instance Attribute Details

#groupObject

Returns the value of attribute group.



20
21
22
# File 'lib/voltron/config/flash.rb', line 20

def group
  @group
end

#headerObject

Returns the value of attribute header.



20
21
22
# File 'lib/voltron/config/flash.rb', line 20

def header
  @header
end

Instance Method Details

#to_hObject



27
28
29
# File 'lib/voltron/config/flash.rb', line 27

def to_h
  { header: header, group: group }
end