Class: Hanami::Action::Mime::Format Private

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

Since:

  • 0.1.0

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Since:

  • 0.1.0



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_typesObject (readonly)

Returns the value of attribute accept_types

Returns:

  • (Object)

    the current value of accept_types



78
79
80
# File 'lib/hanami/action/mime.rb', line 78

def accept_types
  @accept_types
end

#content_typesObject (readonly)

Returns the value of attribute content_types

Returns:

  • (Object)

    the current value of content_types



78
79
80
# File 'lib/hanami/action/mime.rb', line 78

def content_types
  @content_types
end

#media_typeObject (readonly)

Returns the value of attribute media_type

Returns:

  • (Object)

    the current value of media_type



78
79
80
# File 'lib/hanami/action/mime.rb', line 78

def media_type
  @media_type
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



78
79
80
# File 'lib/hanami/action/mime.rb', line 78

def name
  @name
end