Class: Softlayer::Network::Gateway::Member

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/network/gateway/member.rb

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Network_Gateway_Member'

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

#hardwareObject

Returns the value of attribute hardware.



10
11
12
# File 'lib/softlayer/network/gateway/member.rb', line 10

def hardware
  @hardware
end

#hardware_idObject

Returns the value of attribute hardware_id.



6
7
8
# File 'lib/softlayer/network/gateway/member.rb', line 6

def hardware_id
  @hardware_id
end

#idObject

Returns the value of attribute id.



7
8
9
# File 'lib/softlayer/network/gateway/member.rb', line 7

def id
  @id
end

#network_gatewayObject

Returns the value of attribute network_gateway.



11
12
13
# File 'lib/softlayer/network/gateway/member.rb', line 11

def network_gateway
  @network_gateway
end

#network_gateway_idObject

Returns the value of attribute network_gateway_id.



8
9
10
# File 'lib/softlayer/network/gateway/member.rb', line 8

def network_gateway_id
  @network_gateway_id
end

#priorityObject

Returns the value of attribute priority.



9
10
11
# File 'lib/softlayer/network/gateway/member.rb', line 9

def priority
  @priority
end

Class Method Details

.create_object(message) ⇒ Object

template_object



14
15
16
# File 'lib/softlayer/network/gateway/member.rb', line 14

def self.create_object(message)
  request(:create_object, Softlayer::Network::Gateway::Member, message)
end

.create_objects(message) ⇒ Object

template_objects



19
20
21
# File 'lib/softlayer/network/gateway/member.rb', line 19

def self.create_objects(message)
  request(:create_objects, Array[Softlayer::Network::Gateway::Member], message)
end

Instance Method Details

#get_hardwareObject



23
24
25
# File 'lib/softlayer/network/gateway/member.rb', line 23

def get_hardware
  request(:get_hardware, Softlayer::Hardware)
end

#get_network_gatewayObject



27
28
29
# File 'lib/softlayer/network/gateway/member.rb', line 27

def get_network_gateway
  request(:get_network_gateway, Softlayer::Network::Gateway)
end

#get_objectObject



31
32
33
# File 'lib/softlayer/network/gateway/member.rb', line 31

def get_object
  request(:get_object, Softlayer::Network::Gateway::Member)
end