Class: Grape::Util::InheritableSetting::PathSettings

Inherits:
Data
  • Object
show all
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

Instance Attribute Details

#content_typesObject (readonly)

Returns the value of attribute content_types

Returns:

  • (Object)

    the current value of content_types



682
683
684
# File 'lib/grape/util/inheritable_setting.rb', line 682

def content_types
  @content_types
end

#formatObject (readonly)

Returns the value of attribute format

Returns:

  • (Object)

    the current value of format



682
683
684
# File 'lib/grape/util/inheritable_setting.rb', line 682

def format
  @format
end

#mount_pathObject (readonly)

Returns the value of attribute mount_path

Returns:

  • (Object)

    the current value of mount_path



682
683
684
# File 'lib/grape/util/inheritable_setting.rb', line 682

def mount_path
  @mount_path
end

#root_prefixObject (readonly)

Returns the value of attribute root_prefix

Returns:

  • (Object)

    the current value of root_prefix



682
683
684
# File 'lib/grape/util/inheritable_setting.rb', line 682

def root_prefix
  @root_prefix
end

#versionObject (readonly)

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



682
683
684
# File 'lib/grape/util/inheritable_setting.rb', line 682

def version
  @version
end

#version_optionsObject (readonly)

Returns the value of attribute version_options

Returns:

  • (Object)

    the current value of version_options



682
683
684
# File 'lib/grape/util/inheritable_setting.rb', line 682

def version_options
  @version_options
end