Class: Softlayer::Scale::Asset::Hardware
- Inherits:
-
Softlayer::Scale::Asset
- Object
- Model
- Entity
- Softlayer::Scale::Asset
- Softlayer::Scale::Asset::Hardware
- 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
-
#hardware ⇒ Object
Returns the value of attribute hardware.
-
#hardware_id ⇒ Object
Returns the value of attribute hardware_id.
Attributes inherited from Softlayer::Scale::Asset
#create_date, #delete_flag, #id, #scale_group, #scale_group_id
Class Method Summary collapse
-
.create_object(message) ⇒ Object
template_object.
Instance Method Summary collapse
- #delete_object ⇒ Object
- #get_hardware ⇒ Object
- #get_hardware_id ⇒ Object
- #get_object ⇒ Object
- #get_scale_group ⇒ Object
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
#hardware ⇒ Object
Returns the value of attribute hardware.
6 7 8 |
# File 'lib/softlayer/scale/asset/hardware.rb', line 6 def hardware @hardware end |
#hardware_id ⇒ Object
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
Instance Method Details
#delete_object ⇒ Object
14 15 16 |
# File 'lib/softlayer/scale/asset/hardware.rb', line 14 def delete_object request(:delete_object, Boolean) end |
#get_hardware ⇒ Object
18 19 20 |
# File 'lib/softlayer/scale/asset/hardware.rb', line 18 def get_hardware request(:get_hardware, Softlayer::Hardware) end |
#get_hardware_id ⇒ Object
22 23 24 |
# File 'lib/softlayer/scale/asset/hardware.rb', line 22 def get_hardware_id request(:get_hardware_id, Integer) end |