Class: Voltron::Config::Flash
- Inherits:
-
Object
- Object
- Voltron::Config::Flash
- Defined in:
- lib/voltron/config/flash.rb
Instance Attribute Summary collapse
-
#group ⇒ Object
Returns the value of attribute group.
-
#header ⇒ Object
Returns the value of attribute header.
Instance Method Summary collapse
-
#initialize ⇒ Flash
constructor
A new instance of Flash.
- #to_h ⇒ Object
Constructor Details
#initialize ⇒ Flash
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
#group ⇒ Object
Returns the value of attribute group.
20 21 22 |
# File 'lib/voltron/config/flash.rb', line 20 def group @group end |
#header ⇒ Object
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_h ⇒ Object
27 28 29 |
# File 'lib/voltron/config/flash.rb', line 27 def to_h { header: header, group: group } end |