Class: Zm::Client::MtaQueueItem

Inherits:
Base::Object show all
Defined in:
lib/zm/client/mta_queue_item/mta_queue_item.rb

Instance Attribute Summary collapse

Attributes inherited from Base::Object

#parent, #token

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

#addrObject

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

#filterObject

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

#fromObject

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

#fromdomainObject

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

#hostObject

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

#idObject

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

#nObject

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

#nameObject

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

#reasonObject

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

#receivedObject

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

#sizeObject

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

#timeObject

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

#toObject

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

#todomainObject

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_queueObject



9
10
11
# File 'lib/zm/client/mta_queue_item/mta_queue_item.rb', line 9

def mta_queue
  parent
end

#sent_atObject



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

#serverObject



13
14
15
# File 'lib/zm/client/mta_queue_item/mta_queue_item.rb', line 13

def server
  mta_queue.parent
end