Class: AboutPage::RequestEnvironment

Inherits:
Environment show all
Defined in:
lib/about_page/request_environment.rb

Instance Attribute Summary collapse

Attributes inherited from Environment

#sections

Instance Method Summary collapse

Methods inherited from Environment

#env, #initialize, #section_for, #to_h

Methods inherited from Configuration::Node

#add_header, #expects, #messages, render_with, #set_headers!, #to_h

Constructor Details

This class inherits a constructor from AboutPage::Environment

Instance Attribute Details

#environmentObject

Returns the value of attribute environment.



3
4
5
# File 'lib/about_page/request_environment.rb', line 3

def environment
  @environment
end

Instance Method Details

#preflight(request) ⇒ Object



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

def preflight request
  @environment = request.env
end