Class: Mail::MimeVersionElement

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#majorObject (readonly)

Returns the value of attribute major



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

def major
  @major
end

#minorObject (readonly)

Returns the value of attribute minor



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

def minor
  @minor
end