Class: Grape::Util::InheritableSetting::PathSettings
- Inherits:
-
Data
- Object
- Data
- Grape::Util::InheritableSetting::PathSettings
- Defined in:
- lib/grape/util/inheritable_setting.rb
Overview
Immutable snapshot of the settings Router::Pattern::Path reads to assemble a route's origin and suffix, built by #path_settings, which always supplies every member (nil where unset) — unlike RescueOptions/VersionOptions, PathSettings has no bare-default production caller, so it stays a plain Data with no keyword defaults.
Instance Attribute Summary collapse
-
#content_types ⇒ Object
readonly
Returns the value of attribute content_types.
-
#format ⇒ Object
readonly
Returns the value of attribute format.
-
#mount_path ⇒ Object
readonly
Returns the value of attribute mount_path.
-
#root_prefix ⇒ Object
readonly
Returns the value of attribute root_prefix.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
-
#version_options ⇒ Object
readonly
Returns the value of attribute version_options.
Instance Attribute Details
#content_types ⇒ Object (readonly)
Returns the value of attribute content_types
682 683 684 |
# File 'lib/grape/util/inheritable_setting.rb', line 682 def content_types @content_types end |
#format ⇒ Object (readonly)
Returns the value of attribute format
682 683 684 |
# File 'lib/grape/util/inheritable_setting.rb', line 682 def format @format end |
#mount_path ⇒ Object (readonly)
Returns the value of attribute mount_path
682 683 684 |
# File 'lib/grape/util/inheritable_setting.rb', line 682 def mount_path @mount_path end |
#root_prefix ⇒ Object (readonly)
Returns the value of attribute root_prefix
682 683 684 |
# File 'lib/grape/util/inheritable_setting.rb', line 682 def root_prefix @root_prefix end |
#version ⇒ Object (readonly)
Returns the value of attribute version
682 683 684 |
# File 'lib/grape/util/inheritable_setting.rb', line 682 def version @version end |
#version_options ⇒ Object (readonly)
Returns the value of attribute version_options
682 683 684 |
# File 'lib/grape/util/inheritable_setting.rb', line 682 def @version_options end |