Class: Mail::ContentLocationElement

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

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(string) ⇒ ContentLocationElement

Returns a new instance of ContentLocationElement



9
10
11
# File 'lib/mail/elements/content_location_element.rb', line 9

def initialize(string)
  @location = Mail::Parsers::ContentLocationParser.parse(string).location
end

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location



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

def location
  @location
end

Instance Method Details

#to_s(*args) ⇒ Object



13
14
15
# File 'lib/mail/elements/content_location_element.rb', line 13

def to_s(*args)
  location.to_s
end