Class: Softlayer::User::Customer::Notification::Hardware

Inherits:
Entity
  • Object
show all
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

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/user/customer/notification/hardware.rb', line 10

def hardware
  @hardware
end

#hardware_idObject

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

#idObject

Returns the value of attribute id.



8
9
10
# File 'lib/softlayer/user/customer/notification/hardware.rb', line 8

def id
  @id
end

#userObject

Returns the value of attribute user.



11
12
13
# File 'lib/softlayer/user/customer/notification/hardware.rb', line 11

def user
  @user
end

#user_idObject

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(message)
  request(:create_object, Softlayer::User::Customer::Notification::Hardware, message)
end

.create_objects(message) ⇒ Object

template_objects



19
20
21
# File 'lib/softlayer/user/customer/notification/hardware.rb', line 19

def self.create_objects(message)
  request(:create_objects, Array[Softlayer::Dns::Domain], message)
end

.delete_objects(message) ⇒ Object

template_objects



24
25
26
# File 'lib/softlayer/user/customer/notification/hardware.rb', line 24

def self.delete_objects(message)
  request(:delete_objects, Boolean, message)
end

.find_by_hardware_id(message) ⇒ Object

hardware_id



29
30
31
# File 'lib/softlayer/user/customer/notification/hardware.rb', line 29

def self.find_by_hardware_id(message)
  request(:find_by_hardware_id, Array[Softlayer::User::Customer::Notification::Hardware], message)
end

Instance Method Details

#get_hardwareObject



33
34
35
# File 'lib/softlayer/user/customer/notification/hardware.rb', line 33

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

#get_objectObject



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

#get_userObject



41
42
43
# File 'lib/softlayer/user/customer/notification/hardware.rb', line 41

def get_user
  request(:get_user, Softlayer::User::Customer)
end