Method: InternetMessage::ContentType#initialize

Defined in:
lib/internet_message/content_type.rb

#initialize(type, subtype, attribute = {}) ⇒ ContentType

Returns a new instance of ContentType.

Parameters:

  • type (String)
  • subtype (String)
  • attribute (Hash) (defaults to: {})


27
28
29
# File 'lib/internet_message/content_type.rb', line 27

def initialize(type, subtype, attribute={})
  @type, @subtype, @attribute = type.downcase, subtype.downcase, attribute
end