Class: DataMapper::Types::Imap::ImapType

Inherits:
DataMapper::Type
  • Object
show all
Defined in:
lib/dm-imap-adapter/types.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.attr_nameObject (readonly)

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_nameObject (readonly)

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_nameObject (readonly)

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_detailsObject (readonly)

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

Returns:

  • (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

Returns:

  • (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