Class: HerokuErrorPages::PageConfig
- Inherits:
-
Object
- Object
- HerokuErrorPages::PageConfig
- Defined in:
- lib/heroku_error_pages/page_config.rb
Instance Attribute Summary collapse
-
#assigns ⇒ Object
Returns the value of attribute assigns.
-
#layout ⇒ Object
Returns the value of attribute layout.
-
#template ⇒ Object
Returns the value of attribute template.
Instance Method Summary collapse
-
#initialize(template:, assigns:, layout:) ⇒ PageConfig
constructor
A new instance of PageConfig.
Constructor Details
#initialize(template:, assigns:, layout:) ⇒ PageConfig
Returns a new instance of PageConfig.
7 8 9 10 11 |
# File 'lib/heroku_error_pages/page_config.rb', line 7 def initialize(template:, assigns:, layout:) @template = template @assigns = assigns || {} @layout = layout || "application" end |
Instance Attribute Details
#assigns ⇒ Object
Returns the value of attribute assigns.
5 6 7 |
# File 'lib/heroku_error_pages/page_config.rb', line 5 def assigns @assigns end |
#layout ⇒ Object
Returns the value of attribute layout.
5 6 7 |
# File 'lib/heroku_error_pages/page_config.rb', line 5 def layout @layout end |
#template ⇒ Object
Returns the value of attribute template.
5 6 7 |
# File 'lib/heroku_error_pages/page_config.rb', line 5 def template @template end |