Class: Grape::Middleware::Formatter::Options
- Inherits:
-
Data
- Object
- Data
- Grape::Middleware::Formatter::Options
- Includes:
- DeprecatedOptionsHashAccess
- Defined in:
- lib/grape/middleware/formatter.rb
Instance Attribute Summary collapse
-
#content_types ⇒ Object
readonly
Returns the value of attribute content_types.
-
#default_format ⇒ Object
readonly
Returns the value of attribute default_format.
-
#format ⇒ Object
readonly
Returns the value of attribute format.
-
#formatters ⇒ Object
readonly
Returns the value of attribute formatters.
-
#parsers ⇒ Object
readonly
Returns the value of attribute parsers.
Instance Method Summary collapse
-
#initialize(content_types: nil, default_format: :txt, format: nil, formatters: nil, parsers: nil) ⇒ Options
constructor
A new instance of Options.
Methods included from DeprecatedOptionsHashAccess
Constructor Details
#initialize(content_types: nil, default_format: :txt, format: nil, formatters: nil, parsers: nil) ⇒ Options
Returns a new instance of Options.
12 13 14 |
# File 'lib/grape/middleware/formatter.rb', line 12 def initialize(content_types: nil, default_format: :txt, format: nil, formatters: nil, parsers: nil) super end |
Instance Attribute Details
#content_types ⇒ Object (readonly)
Returns the value of attribute content_types
9 10 11 |
# File 'lib/grape/middleware/formatter.rb', line 9 def content_types @content_types end |
#default_format ⇒ Object (readonly)
Returns the value of attribute default_format
9 10 11 |
# File 'lib/grape/middleware/formatter.rb', line 9 def default_format @default_format end |
#format ⇒ Object (readonly)
Returns the value of attribute format
9 10 11 |
# File 'lib/grape/middleware/formatter.rb', line 9 def format @format end |
#formatters ⇒ Object (readonly)
Returns the value of attribute formatters
9 10 11 |
# File 'lib/grape/middleware/formatter.rb', line 9 def formatters @formatters end |
#parsers ⇒ Object (readonly)
Returns the value of attribute parsers
9 10 11 |
# File 'lib/grape/middleware/formatter.rb', line 9 def parsers @parsers end |