Class: MediaTypes::Serialization::Utils::AcceptHeader

Inherits:
Array
  • Object
show all
Defined in:
lib/media_types/serialization/utils/accept_header.rb

Defined Under Namespace

Classes: Entry

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ AcceptHeader

Returns a new instance of AcceptHeader.



31
32
33
# File 'lib/media_types/serialization/utils/accept_header.rb', line 31

def initialize(value)
  __setobj__ HeaderList.new(value, entry_klazz: AcceptHeader::Entry)
end