Class: Zm::Client::MtaQueue

Inherits:
Base::Object show all
Includes:
HasSoapAdminConnector
Defined in:
lib/zm/client/mta_queue/mta_queue.rb

Instance Attribute Summary collapse

Attributes inherited from Base::Object

#id, #parent, #token

Instance Method Summary collapse

Methods included from HasSoapAdminConnector

#soap_admin_connector

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

#nObject Also known as: nb_items

Returns the value of attribute n.



10
11
12
# File 'lib/zm/client/mta_queue/mta_queue.rb', line 10

def n
  @n
end

#nameObject

Returns the value of attribute name.



10
11
12
# File 'lib/zm/client/mta_queue/mta_queue.rb', line 10

def name
  @name
end

Instance Method Details

#delete!(ids) ⇒ Object



30
31
32
# File 'lib/zm/client/mta_queue/mta_queue.rb', line 30

def delete!(ids)
  sac.invoke(jsns_builder.to_jsns(Zm::Client::MtaQueueAction::DELETE, ids))
end

#hold!(ids) ⇒ Object



22
23
24
# File 'lib/zm/client/mta_queue/mta_queue.rb', line 22

def hold!(ids)
  sac.invoke(jsns_builder.to_jsns(Zm::Client::MtaQueueAction::HOLD, ids))
end

#itemsObject



18
19
20
# File 'lib/zm/client/mta_queue/mta_queue.rb', line 18

def items
  @items ||= MtaQueueItemsCollection.new self
end

#release!(ids) ⇒ Object



26
27
28
# File 'lib/zm/client/mta_queue/mta_queue.rb', line 26

def release!(ids)
  sac.invoke(jsns_builder.to_jsns(Zm::Client::MtaQueueAction::RELEASE, ids))
end

#requeue!(ids) ⇒ Object



34
35
36
# File 'lib/zm/client/mta_queue/mta_queue.rb', line 34

def requeue!(ids)
  sac.invoke(jsns_builder.to_jsns(Zm::Client::MtaQueueAction::REQUEUE, ids))
end

#serverObject



14
15
16
# File 'lib/zm/client/mta_queue/mta_queue.rb', line 14

def server
  @parent
end