Class: Grape::Middleware::Versioner::Base::Options
- Inherits:
-
Data
- Object
- Data
- Grape::Middleware::Versioner::Base::Options
- Includes:
- DeprecatedOptionsHashAccess
- Defined in:
- lib/grape/middleware/versioner/base.rb
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.
-
#pattern ⇒ Object
readonly
Returns the value of attribute pattern.
-
#prefix ⇒ Object
readonly
Returns the value of attribute prefix.
-
#version_options ⇒ Object
readonly
Returns the value of attribute version_options.
-
#versions ⇒ Object
readonly
Returns the value of attribute versions.
Instance Method Summary collapse
-
#initialize(content_types: nil, format: nil, mount_path: nil, pattern: /.*/i, prefix: nil, version_options: Grape::DSL::VersionOptions.new, versions: nil) ⇒ Options
constructor
A new instance of Options.
Methods included from DeprecatedOptionsHashAccess
Constructor Details
#initialize(content_types: nil, format: nil, mount_path: nil, pattern: /.*/i, prefix: nil, version_options: Grape::DSL::VersionOptions.new, versions: nil) ⇒ Options
Returns a new instance of Options.
15 16 17 18 19 20 |
# File 'lib/grape/middleware/versioner/base.rb', line 15 def initialize( content_types: nil, format: nil, mount_path: nil, pattern: /.*/i, prefix: nil, version_options: Grape::DSL::VersionOptions.new, versions: nil ) super end |
Instance Attribute Details
#content_types ⇒ Object (readonly)
Returns the value of attribute content_types
10 11 12 |
# File 'lib/grape/middleware/versioner/base.rb', line 10 def content_types @content_types end |
#format ⇒ Object (readonly)
Returns the value of attribute format
10 11 12 |
# File 'lib/grape/middleware/versioner/base.rb', line 10 def format @format end |
#mount_path ⇒ Object (readonly)
Returns the value of attribute mount_path
10 11 12 |
# File 'lib/grape/middleware/versioner/base.rb', line 10 def mount_path @mount_path end |
#pattern ⇒ Object (readonly)
Returns the value of attribute pattern
10 11 12 |
# File 'lib/grape/middleware/versioner/base.rb', line 10 def pattern @pattern end |
#prefix ⇒ Object (readonly)
Returns the value of attribute prefix
10 11 12 |
# File 'lib/grape/middleware/versioner/base.rb', line 10 def prefix @prefix end |
#version_options ⇒ Object (readonly)
Returns the value of attribute version_options
10 11 12 |
# File 'lib/grape/middleware/versioner/base.rb', line 10 def @version_options end |
#versions ⇒ Object (readonly)
Returns the value of attribute versions
10 11 12 |
# File 'lib/grape/middleware/versioner/base.rb', line 10 def versions @versions end |