Class: Mail::ContentDispositionElement

Inherits:
Object
  • Object
show all
Defined in:
lib/mail/elements/content_disposition_element.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

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_typeObject (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

#parametersObject (readonly)

Returns the value of attribute parameters.



7
8
9
# File 'lib/mail/elements/content_disposition_element.rb', line 7

def parameters
  @parameters
end