Class: Softlayer::User::Customer::Notification::Hardware
- Defined in:
- lib/softlayer/user/customer/notification/hardware.rb
Defined Under Namespace
Classes: Representer
Constant Summary collapse
- SERVICE =
'SoftLayer_User_Customer_Notification_Hardware'
Instance Attribute Summary collapse
-
#hardware ⇒ Object
Returns the value of attribute hardware.
-
#hardware_id ⇒ Object
Returns the value of attribute hardware_id.
-
#id ⇒ Object
Returns the value of attribute id.
-
#user ⇒ Object
Returns the value of attribute user.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
Class Method Summary collapse
-
.create_object(message) ⇒ Object
template_object.
-
.create_objects(message) ⇒ Object
template_objects.
-
.delete_objects(message) ⇒ Object
template_objects.
-
.find_by_hardware_id(message) ⇒ Object
hardware_id.
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
#hardware ⇒ Object
Returns the value of attribute hardware.
10 11 12 |
# File 'lib/softlayer/user/customer/notification/hardware.rb', line 10 def hardware @hardware end |
#hardware_id ⇒ Object
Returns the value of attribute hardware_id.
7 8 9 |
# File 'lib/softlayer/user/customer/notification/hardware.rb', line 7 def hardware_id @hardware_id end |
#id ⇒ Object
Returns the value of attribute id.
8 9 10 |
# File 'lib/softlayer/user/customer/notification/hardware.rb', line 8 def id @id end |
#user ⇒ Object
Returns the value of attribute user.
11 12 13 |
# File 'lib/softlayer/user/customer/notification/hardware.rb', line 11 def user @user end |
#user_id ⇒ Object
Returns the value of attribute user_id.
9 10 11 |
# File 'lib/softlayer/user/customer/notification/hardware.rb', line 9 def user_id @user_id end |
Class Method Details
.create_object(message) ⇒ Object
template_object
14 15 16 |
# File 'lib/softlayer/user/customer/notification/hardware.rb', line 14 def self.create_object() request(:create_object, Softlayer::User::Customer::Notification::Hardware, ) end |
.create_objects(message) ⇒ Object
template_objects
19 20 21 |
# File 'lib/softlayer/user/customer/notification/hardware.rb', line 19 def self.create_objects() request(:create_objects, Array[Softlayer::Dns::Domain], ) end |
.delete_objects(message) ⇒ Object
template_objects
24 25 26 |
# File 'lib/softlayer/user/customer/notification/hardware.rb', line 24 def self.delete_objects() request(:delete_objects, Boolean, ) end |
Instance Method Details
#get_hardware ⇒ Object
33 34 35 |
# File 'lib/softlayer/user/customer/notification/hardware.rb', line 33 def get_hardware request(:get_hardware, Softlayer::Hardware) end |
#get_object ⇒ Object
37 38 39 |
# File 'lib/softlayer/user/customer/notification/hardware.rb', line 37 def get_object request(:get_object, Softlayer::User::Customer::Notification::Hardware) end |