class Athena::MIME::Header::Identification

Overview

Represents an ID MIME Header for something like message-id or content-id (one or more addresses).

Defined in:

header/identification.cr

Constructors

Instance Method Summary

Instance methods inherited from class Athena::MIME::Header::Abstract(Array(String))

body : T(String) body, body=(body : T(String)) body=, charset : String charset, charset=(charset : String) charset=, clone clone, lang : String | Nil lang, lang=(lang : String | Nil) lang=, max_line_length : Int32 max_line_length, max_line_length=(max_line_length : Int32) max_line_length=, name : String name

Constructor methods inherited from class Athena::MIME::Header::Abstract(Array(String))

new(name : String) new

Instance methods inherited from module Athena::MIME::Header::Interface

body body, body=(body) body=, body_to_s : String body_to_s, max_line_length : Int32 max_line_length, max_line_length=(max_line_length : Int32) max_line_length=, name : String name, to_s(io : IO) : Nil to_s

Constructor Detail

def self.new(name : String, value : String | Array(String)) #

[View source]

Instance Method Detail

def body : Array(String) #

Returns the body of this header.


[View source]
def body=(body : String | Array(String)) #

:inherit:


[View source]
def id : String | Nil #

Returns the ID used in the value of this header. If multiple IDs are set, only the first is returned.


[View source]
def id=(id : String | Array(String)) : Nil #

Sets the ID used in the value of this header.


[View source]
def ids : Array(String) #

[View source]
def ids=(ids : Array(String)) : Nil #

Sets a collection of IDs to use in the value of this header.


[View source]
def ids_as_addresses : Array(AMIME::Address) #

[View source]