Class: Softlayer::Network::Message::Queue

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/network/message/queue.rb,
lib/softlayer/network/message/queue/node.rb,
lib/softlayer/network/message/queue/status.rb

Defined Under Namespace

Classes: Node, Representer, Status

Constant Summary collapse

SERVICE =
'SoftLayer_Network_Message_Queue'

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Model

all, all_request_for, create, find, #init_headers, parse, process_message, #request, request, service_name, #service_name, #to_hash, #to_softlayer

Methods included from Model::Operations

extended, #filter, included, #limit, #mask, #request_headers

Instance Attribute Details

#accountObject

Returns the value of attribute account.



15
16
17
# File 'lib/softlayer/network/message/queue.rb', line 15

def 
  @account
end

#account_idObject

Returns the value of attribute account_id.



8
9
10
# File 'lib/softlayer/network/message/queue.rb', line 8

def 
  @account_id
end

#billing_itemObject

Returns the value of attribute billing_item.



16
17
18
# File 'lib/softlayer/network/message/queue.rb', line 16

def billing_item
  @billing_item
end

#create_dateObject

Returns the value of attribute create_date.



9
10
11
# File 'lib/softlayer/network/message/queue.rb', line 9

def create_date
  @create_date
end

#idObject

Returns the value of attribute id.



10
11
12
# File 'lib/softlayer/network/message/queue.rb', line 10

def id
  @id
end

#message_queue_status_idObject

Returns the value of attribute message_queue_status_id.



11
12
13
# File 'lib/softlayer/network/message/queue.rb', line 11

def message_queue_status_id
  @message_queue_status_id
end

#nameObject

Returns the value of attribute name.



12
13
14
# File 'lib/softlayer/network/message/queue.rb', line 12

def name
  @name
end

#node_countObject

Returns the value of attribute node_count.



14
15
16
# File 'lib/softlayer/network/message/queue.rb', line 14

def node_count
  @node_count
end

#nodesObject

Returns the value of attribute nodes.



17
18
19
# File 'lib/softlayer/network/message/queue.rb', line 17

def nodes
  @nodes
end

#notesObject

Returns the value of attribute notes.



13
14
15
# File 'lib/softlayer/network/message/queue.rb', line 13

def notes
  @notes
end

#statusObject

Returns the value of attribute status.



18
19
20
# File 'lib/softlayer/network/message/queue.rb', line 18

def status
  @status
end

Instance Method Details

#get_accountObject



20
21
22
# File 'lib/softlayer/network/message/queue.rb', line 20

def 
  request(:get_account, Softlayer::Account)
end

#get_billing_itemObject



24
25
26
# File 'lib/softlayer/network/message/queue.rb', line 24

def get_billing_item
  request(:get_billing_item, Softlayer::Billing::Item)
end

#get_nodesObject



28
29
30
# File 'lib/softlayer/network/message/queue.rb', line 28

def get_nodes
  request(:get_nodes, Array[Softlayer::Network::Message::Queue::Node])
end

#get_objectObject



32
33
34
# File 'lib/softlayer/network/message/queue.rb', line 32

def get_object
  request(:get_object, Softlayer::Network::Message::Queue)
end

#get_statusObject



36
37
38
# File 'lib/softlayer/network/message/queue.rb', line 36

def get_status
  request(:get_status, Softlayer::Network::Message::Queue::Status)
end