Class: Zm::Client::MtaQueueItem
- Inherits:
-
Base::Object
- Object
- Base::Object
- Zm::Client::MtaQueueItem
- Defined in:
- lib/zm/client/mta_queue_item/mta_queue_item.rb
Instance Attribute Summary collapse
-
#addr ⇒ Object
Returns the value of attribute addr.
-
#filter ⇒ Object
Returns the value of attribute filter.
-
#from ⇒ Object
Returns the value of attribute from.
-
#fromdomain ⇒ Object
Returns the value of attribute fromdomain.
-
#host ⇒ Object
Returns the value of attribute host.
-
#id ⇒ Object
Returns the value of attribute id.
-
#n ⇒ Object
Returns the value of attribute n.
-
#name ⇒ Object
Returns the value of attribute name.
-
#reason ⇒ Object
Returns the value of attribute reason.
-
#received ⇒ Object
Returns the value of attribute received.
-
#size ⇒ Object
Returns the value of attribute size.
-
#time ⇒ Object
Returns the value of attribute time.
-
#to ⇒ Object
Returns the value of attribute to.
-
#todomain ⇒ Object
Returns the value of attribute todomain.
Attributes inherited from Base::Object
Instance Method Summary collapse
Methods inherited from Base::Object
#clone, #initialize, #inspect, #instance_variables_map, #logger, #recorded?, #save!, #to_h, #to_s, #update_attribute
Constructor Details
This class inherits a constructor from Zm::Client::Base::Object
Instance Attribute Details
#addr ⇒ Object
Returns the value of attribute addr.
6 7 8 |
# File 'lib/zm/client/mta_queue_item/mta_queue_item.rb', line 6 def addr @addr end |
#filter ⇒ Object
Returns the value of attribute filter.
6 7 8 |
# File 'lib/zm/client/mta_queue_item/mta_queue_item.rb', line 6 def filter @filter end |
#from ⇒ Object
Returns the value of attribute from.
6 7 8 |
# File 'lib/zm/client/mta_queue_item/mta_queue_item.rb', line 6 def from @from end |
#fromdomain ⇒ Object
Returns the value of attribute fromdomain.
6 7 8 |
# File 'lib/zm/client/mta_queue_item/mta_queue_item.rb', line 6 def fromdomain @fromdomain end |
#host ⇒ Object
Returns the value of attribute host.
6 7 8 |
# File 'lib/zm/client/mta_queue_item/mta_queue_item.rb', line 6 def host @host end |
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/zm/client/mta_queue_item/mta_queue_item.rb', line 6 def id @id end |
#n ⇒ Object
Returns the value of attribute n.
6 7 8 |
# File 'lib/zm/client/mta_queue_item/mta_queue_item.rb', line 6 def n @n end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/zm/client/mta_queue_item/mta_queue_item.rb', line 6 def name @name end |
#reason ⇒ Object
Returns the value of attribute reason.
6 7 8 |
# File 'lib/zm/client/mta_queue_item/mta_queue_item.rb', line 6 def reason @reason end |
#received ⇒ Object
Returns the value of attribute received.
6 7 8 |
# File 'lib/zm/client/mta_queue_item/mta_queue_item.rb', line 6 def received @received end |
#size ⇒ Object
Returns the value of attribute size.
6 7 8 |
# File 'lib/zm/client/mta_queue_item/mta_queue_item.rb', line 6 def size @size end |
#time ⇒ Object
Returns the value of attribute time.
6 7 8 |
# File 'lib/zm/client/mta_queue_item/mta_queue_item.rb', line 6 def time @time end |
#to ⇒ Object
Returns the value of attribute to.
6 7 8 |
# File 'lib/zm/client/mta_queue_item/mta_queue_item.rb', line 6 def to @to end |
#todomain ⇒ Object
Returns the value of attribute todomain.
6 7 8 |
# File 'lib/zm/client/mta_queue_item/mta_queue_item.rb', line 6 def todomain @todomain end |
Instance Method Details
#mta_queue ⇒ Object
9 10 11 |
# File 'lib/zm/client/mta_queue_item/mta_queue_item.rb', line 9 def mta_queue parent end |
#sent_at ⇒ Object
17 18 19 20 21 |
# File 'lib/zm/client/mta_queue_item/mta_queue_item.rb', line 17 def sent_at @sent_at ||= Time.at(@time / 1000) rescue StandardError nil end |
#server ⇒ Object
13 14 15 |
# File 'lib/zm/client/mta_queue_item/mta_queue_item.rb', line 13 def server mta_queue.parent end |