Class: HerokuErrorPages::PageConfig

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#assignsObject

Returns the value of attribute assigns.



5
6
7
# File 'lib/heroku_error_pages/page_config.rb', line 5

def assigns
  @assigns
end

#layoutObject

Returns the value of attribute layout.



5
6
7
# File 'lib/heroku_error_pages/page_config.rb', line 5

def layout
  @layout
end

#templateObject

Returns the value of attribute template.



5
6
7
# File 'lib/heroku_error_pages/page_config.rb', line 5

def template
  @template
end