Class: Softlayer::Scale::Asset::Hardware

Inherits:
Softlayer::Scale::Asset show all
Defined in:
lib/softlayer/scale/asset/hardware.rb

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Scale_Asset_Hardware'

Instance Attribute Summary collapse

Attributes inherited from Softlayer::Scale::Asset

#create_date, #delete_flag, #id, #scale_group, #scale_group_id

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.



6
7
8
# File 'lib/softlayer/scale/asset/hardware.rb', line 6

def hardware
  @hardware
end

#hardware_idObject

Returns the value of attribute hardware_id.



7
8
9
# File 'lib/softlayer/scale/asset/hardware.rb', line 7

def hardware_id
  @hardware_id
end

Class Method Details

.create_object(message) ⇒ Object

template_object



10
11
12
# File 'lib/softlayer/scale/asset/hardware.rb', line 10

def self.create_object(message)
  request(:create_object, Softlayer::Scale::Asset::Hardware, message)
end

Instance Method Details

#delete_objectObject



14
15
16
# File 'lib/softlayer/scale/asset/hardware.rb', line 14

def delete_object
  request(:delete_object, Boolean)
end

#get_hardwareObject



18
19
20
# File 'lib/softlayer/scale/asset/hardware.rb', line 18

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

#get_hardware_idObject



22
23
24
# File 'lib/softlayer/scale/asset/hardware.rb', line 22

def get_hardware_id
  request(:get_hardware_id, Integer)
end

#get_objectObject



26
27
28
# File 'lib/softlayer/scale/asset/hardware.rb', line 26

def get_object
  request(:get_object, Softlayer::Scale::Asset::Hardware)
end

#get_scale_groupObject



30
31
32
# File 'lib/softlayer/scale/asset/hardware.rb', line 30

def get_scale_group
  request(:get_scale_group, Softlayer::Scale::Group)
end