class Mail::CommonAddressField

Direct Known Subclasses

Defined in:

mail/fields/common_address_field.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor methods inherited from class Mail::NamedStructuredField

new(value = nil, charset = nil) new

Instance methods inherited from class Mail::CommonField

charset : String | Nil charset, charset=(charset : String | Nil) charset=, decoded decoded, default default, do_decode do_decode, do_encode do_encode, element element, element=(element) element=, encoded encoded, errors : Array(Array(Mail::Field::ParseError | String)) errors, errors=(errors : Array(Array(String | Field::ParseError))) errors=, main_type main_type, mime_type mime_type, name : String | Nil name, name=(name : String | Nil) name=, parameters parameters, parse parse, responsible_for?(field_name) responsible_for?, singular? singular?, to_s to_s, value : String | Nil value, value=(value) value=

Constructor methods inherited from class Mail::CommonField

new(value = nil, charset = nil) new

Class methods inherited from class Mail::CommonField

parse(*args) parse, singular? singular?

Constructor Detail

def self.new(value = nil, charset = nil) #

[View source]

Class Method Detail

def self.singular? #

[View source]

Instance Method Detail

def <<(val) #

[View source]
def address #

[View source]
def addresses #

Returns the address string of all the addresses in the address list


[View source]
def addrs #

Returns the actual address objects in the address list


[View source]
def decoded_group_addresses #

Returns a list of decoded group addresses


[View source]
def default #

[View source]
def display_names #

Returns the display name of all the addresses in the address list


[View source]
def do_decode #

[View source]
def do_encode #

[View source]
def each(&) #

Allows you to iterate through each address object in the address_list


[View source]
def element #

[View source]
def encode_if_needed(val, val_charset = charset) #

[View source]
def encoded_group_addresses #

Returns a list of encoded group addresses


[View source]
def formatted #

Returns the formatted string of all the addresses in the address list


[View source]
def get_group_addresses(group_list) #

[View source]
def group_addresses #

Returns the addresses that are part of groups


[View source]
def group_names #

Returns the name of all the groups in a string


[View source]
def groups #

Returns a hash of group name => address strings for the address list


[View source]
def utf8_if_needed(val, val_charset) #

Pass through UTF-8 addresses


[View source]