Class: DataMapper::Types::Imap::ImapType
- Inherits:
-
DataMapper::Type
- Object
- DataMapper::Type
- DataMapper::Types::Imap::ImapType
show all
- Defined in:
- lib/dm-imap-adapter/types.rb
Direct Known Subclasses
Bcc, Body, BodyText, Cc, EnvelopeDate, From, Header, InReplyTo, InternalDate, MessageId, ReplyTo, Sender, Sequence, Size, Subject, To, Uid
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.attr_name ⇒ Object
Returns the value of attribute attr_name.
64
65
66
|
# File 'lib/dm-imap-adapter/types.rb', line 64
def attr_name
@attr_name
end
|
.envelope_name ⇒ Object
Returns the value of attribute envelope_name.
64
65
66
|
# File 'lib/dm-imap-adapter/types.rb', line 64
def envelope_name
@envelope_name
end
|
.method_name ⇒ Object
Returns the value of attribute method_name.
64
65
66
|
# File 'lib/dm-imap-adapter/types.rb', line 64
def method_name
@method_name
end
|
.query_details ⇒ Object
Returns the value of attribute query_details.
64
65
66
|
# File 'lib/dm-imap-adapter/types.rb', line 64
def query_details
@query_details
end
|
Class Method Details
.attr(name) ⇒ Object
79
80
81
82
|
# File 'lib/dm-imap-adapter/types.rb', line 79
def attr(name)
meth :attr
@attr_name = name
end
|
.attr? ⇒ Boolean
88
89
90
|
# File 'lib/dm-imap-adapter/types.rb', line 88
def attr?
!!@attr_name
end
|
.envelope(name) ⇒ Object
70
71
72
73
|
# File 'lib/dm-imap-adapter/types.rb', line 70
def envelope(name)
attr "ENVELOPE"
@envelope_name = name
end
|
.envelope? ⇒ Boolean
75
76
77
|
# File 'lib/dm-imap-adapter/types.rb', line 75
def envelope?
!!@envelope_name
end
|
.imap_query(name) ⇒ Object
66
67
68
|
# File 'lib/dm-imap-adapter/types.rb', line 66
def imap_query(name)
@query_details = name
end
|
.meth(name) ⇒ Object
84
85
86
|
# File 'lib/dm-imap-adapter/types.rb', line 84
def meth(name)
@method_name = name
end
|