Class: Mail::ContentLocationElement
- Inherits:
-
Object
- Object
- Mail::ContentLocationElement
- Defined in:
- lib/mail/elements/content_location_element.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Instance Method Summary collapse
-
#initialize(string) ⇒ ContentLocationElement
constructor
A new instance of ContentLocationElement.
- #to_s(*args) ⇒ Object
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
#location ⇒ Object (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 |