Class: Softlayer::Network::Subnet::Swip::Transaction

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/network/subnet/swip/transaction.rb

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Network_Subnet_Swip_Transaction'

Instance Attribute Summary collapse

Class Method 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.



10
11
12
# File 'lib/softlayer/network/subnet/swip/transaction.rb', line 10

def 
  @account
end

#idObject

Returns the value of attribute id.



7
8
9
# File 'lib/softlayer/network/subnet/swip/transaction.rb', line 7

def id
  @id
end

#status_nameObject

Returns the value of attribute status_name.



8
9
10
# File 'lib/softlayer/network/subnet/swip/transaction.rb', line 8

def status_name
  @status_name
end

#subnetObject

Returns the value of attribute subnet.



11
12
13
# File 'lib/softlayer/network/subnet/swip/transaction.rb', line 11

def subnet
  @subnet
end

#subnet_idObject

Returns the value of attribute subnet_id.



9
10
11
# File 'lib/softlayer/network/subnet/swip/transaction.rb', line 9

def subnet_id
  @subnet_id
end

Class Method Details

.find_my_transactionsObject



13
14
15
# File 'lib/softlayer/network/subnet/swip/transaction.rb', line 13

def self.find_my_transactions
  request(:find_my_transactions, Array[Softlayer::Network::Subnet::Swip::Transaction])
end

.remove_all_subnet_swipsObject



29
30
31
# File 'lib/softlayer/network/subnet/swip/transaction.rb', line 29

def self.remove_all_subnet_swips
  request(:remove_all_subnet_swips, Integer)
end

.swip_all_subnetsObject



41
42
43
# File 'lib/softlayer/network/subnet/swip/transaction.rb', line 41

def self.swip_all_subnets
  request(:swip_all_subnets, Integer)
end

.update_all_subnet_swipsObject



45
46
47
# File 'lib/softlayer/network/subnet/swip/transaction.rb', line 45

def self.update_all_subnet_swips
  request(:update_all_subnet_swips, Integer)
end

Instance Method Details

#get_accountObject



17
18
19
# File 'lib/softlayer/network/subnet/swip/transaction.rb', line 17

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

#get_objectObject



21
22
23
# File 'lib/softlayer/network/subnet/swip/transaction.rb', line 21

def get_object
  request(:get_object, Softlayer::Network::Subnet::Swip::Transaction)
end

#get_subnetObject



25
26
27
# File 'lib/softlayer/network/subnet/swip/transaction.rb', line 25

def get_subnet
  request(:get_subnet, Softlayer::Network::Subnet)
end

#remove_swip_dataObject



33
34
35
# File 'lib/softlayer/network/subnet/swip/transaction.rb', line 33

def remove_swip_data
  request(:remove_swip_data, Boolean)
end

#resend_swip_dataObject



37
38
39
# File 'lib/softlayer/network/subnet/swip/transaction.rb', line 37

def resend_swip_data
  request(:resend_swip_data, Boolean)
end