Class: Softlayer::Layout::Profile::Customer

Inherits:
Softlayer::Layout::Profile show all
Defined in:
lib/softlayer/layout/profile/customer.rb

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Layout_Profile_Customer'

Instance Attribute Summary collapse

Attributes inherited from Softlayer::Layout::Profile

#active_flag, #create_date, #id, #layout_container_count, #layout_containers, #layout_preference_count, #layout_preferences, #modify_date, #name, #user_record_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

#user_recordObject

Returns the value of attribute user_record.



6
7
8
# File 'lib/softlayer/layout/profile/customer.rb', line 6

def user_record
  @user_record
end

Class Method Details

.create_object(message) ⇒ Object

template_object



9
10
11
# File 'lib/softlayer/layout/profile/customer.rb', line 9

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

Instance Method Details

#delete_objectObject



13
14
15
# File 'lib/softlayer/layout/profile/customer.rb', line 13

def delete_object
  request(:delete_object, Boolean)
end

#edit_object(message) ⇒ Object

template_object



18
19
20
# File 'lib/softlayer/layout/profile/customer.rb', line 18

def edit_object(message)
  request(:edit_object, Boolean, message)
end

#get_layout_containersObject



22
23
24
# File 'lib/softlayer/layout/profile/customer.rb', line 22

def get_layout_containers
  request(:get_layout_containers, Array[Softlayer::Layout::Container])
end

#get_layout_preferencesObject



26
27
28
# File 'lib/softlayer/layout/profile/customer.rb', line 26

def get_layout_preferences
  request(:get_layout_preferences, Array[Softlayer::Layout::Profile::Preference])
end

#get_objectObject



30
31
32
# File 'lib/softlayer/layout/profile/customer.rb', line 30

def get_object
  request(:get_object, Softlayer::Layout::Profile::Customer)
end

#get_user_recordObject



34
35
36
# File 'lib/softlayer/layout/profile/customer.rb', line 34

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

#modify_preference(message) ⇒ Object

template_object



39
40
41
# File 'lib/softlayer/layout/profile/customer.rb', line 39

def modify_preference(message)
  request(:modify_preference, Softlayer::Layout::Profile::Preference, message)
end

#modify_preferences(message) ⇒ Object

layout_preference_objects



44
45
46
# File 'lib/softlayer/layout/profile/customer.rb', line 44

def modify_preferences(message)
  request(:modify_preferences, Array[Softlayer::Layout::Profile::Preference], message)
end