Class: Hanami::Action::Mime::Format Private
- Inherits:
-
Data
- Object
- Data
- Hanami::Action::Mime::Format
- Defined in:
- lib/hanami/action/mime.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
-
#accept_types ⇒ Object
readonly
Returns the value of attribute accept_types.
-
#content_types ⇒ Object
readonly
Returns the value of attribute content_types.
-
#media_type ⇒ Object
readonly
Returns the value of attribute media_type.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name:, media_type:, accept_types: [media_type], content_types: [media_type]) ⇒ Format
constructor
private
A new instance of Format.
Constructor Details
#initialize(name:, media_type:, accept_types: [media_type], content_types: [media_type]) ⇒ Format
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Format.
79 80 81 |
# File 'lib/hanami/action/mime.rb', line 79 def initialize(name:, media_type:, accept_types: [media_type], content_types: [media_type]) super end |
Instance Attribute Details
#accept_types ⇒ Object (readonly)
Returns the value of attribute accept_types
78 79 80 |
# File 'lib/hanami/action/mime.rb', line 78 def accept_types @accept_types end |
#content_types ⇒ Object (readonly)
Returns the value of attribute content_types
78 79 80 |
# File 'lib/hanami/action/mime.rb', line 78 def content_types @content_types end |
#media_type ⇒ Object (readonly)
Returns the value of attribute media_type
78 79 80 |
# File 'lib/hanami/action/mime.rb', line 78 def media_type @media_type end |
#name ⇒ Object (readonly)
Returns the value of attribute name
78 79 80 |
# File 'lib/hanami/action/mime.rb', line 78 def name @name end |