Class: Mail::ContentDispositionElement
- Inherits:
-
Object
- Object
- Mail::ContentDispositionElement
- Defined in:
- lib/mail/elements/content_disposition_element.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#disposition_type ⇒ Object
readonly
Returns the value of attribute disposition_type.
-
#parameters ⇒ Object
readonly
Returns the value of attribute parameters.
Instance Method Summary collapse
-
#initialize(string) ⇒ ContentDispositionElement
constructor
A new instance of ContentDispositionElement.
Constructor Details
#initialize(string) ⇒ ContentDispositionElement
Returns a new instance of ContentDispositionElement.
9 10 11 12 13 |
# File 'lib/mail/elements/content_disposition_element.rb', line 9 def initialize(string) content_disposition = Mail::Parsers::ContentDispositionParser.parse(cleaned(string)) @disposition_type = content_disposition.disposition_type @parameters = content_disposition.parameters end |
Instance Attribute Details
#disposition_type ⇒ Object (readonly)
Returns the value of attribute disposition_type.
7 8 9 |
# File 'lib/mail/elements/content_disposition_element.rb', line 7 def disposition_type @disposition_type end |
#parameters ⇒ Object (readonly)
Returns the value of attribute parameters.
7 8 9 |
# File 'lib/mail/elements/content_disposition_element.rb', line 7 def parameters @parameters end |