Class: Zm::Client::MtaQueue
Instance Attribute Summary collapse
Attributes inherited from Base::Object
#id, #parent, #token
Instance Method Summary
collapse
#soap_admin_connector
#clone, #initialize, #inspect, #instance_variables_map, #logger, #recorded?, #save!, #to_h, #to_s, #update_attribute
Instance Attribute Details
#n ⇒ Object
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
|
#name ⇒ Object
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
32
33
34
|
# File 'lib/zm/client/mta_queue/mta_queue.rb', line 32
def delete!(ids)
sac.invoke(jsns_builder.to_jsns(Zm::Client::MtaQueueAction::DELETE, ids))
end
|
#hold!(ids) ⇒ Object
24
25
26
|
# File 'lib/zm/client/mta_queue/mta_queue.rb', line 24
def hold!(ids)
sac.invoke(jsns_builder.to_jsns(Zm::Client::MtaQueueAction::HOLD, ids))
end
|
#items ⇒ Object
18
19
20
21
22
|
# File 'lib/zm/client/mta_queue/mta_queue.rb', line 18
def items
return @items if defined? @items
@items = MtaQueueItemsCollection.new self
end
|
#release!(ids) ⇒ Object
28
29
30
|
# File 'lib/zm/client/mta_queue/mta_queue.rb', line 28
def release!(ids)
sac.invoke(jsns_builder.to_jsns(Zm::Client::MtaQueueAction::RELEASE, ids))
end
|
#requeue!(ids) ⇒ Object
36
37
38
|
# File 'lib/zm/client/mta_queue/mta_queue.rb', line 36
def requeue!(ids)
sac.invoke(jsns_builder.to_jsns(Zm::Client::MtaQueueAction::REQUEUE, ids))
end
|
#server ⇒ Object
14
15
16
|
# File 'lib/zm/client/mta_queue/mta_queue.rb', line 14
def server
@parent
end
|