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