Class: MailParser::RFC2045::ContentType
- Inherits:
-
Object
- Object
- MailParser::RFC2045::ContentType
- Defined in:
- lib/mailparser/rfc2045.rb
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#subtype ⇒ Object
readonly
Returns the value of attribute subtype.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, subtype, params) ⇒ ContentType
constructor
A new instance of ContentType.
Constructor Details
#initialize(type, subtype, params) ⇒ ContentType
Returns a new instance of ContentType.
19 20 21 |
# File 'lib/mailparser/rfc2045.rb', line 19 def initialize(type, subtype, params) @type, @subtype, @params = type.downcase, subtype.downcase, params end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
23 24 25 |
# File 'lib/mailparser/rfc2045.rb', line 23 def params @params end |
#subtype ⇒ Object (readonly)
Returns the value of attribute subtype.
23 24 25 |
# File 'lib/mailparser/rfc2045.rb', line 23 def subtype @subtype end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
23 24 25 |
# File 'lib/mailparser/rfc2045.rb', line 23 def type @type end |