Class: Softlayer::User::Customer::Notification::Virtual::Guest
- Defined in:
- lib/softlayer/user/customer/notification/virtual/guest.rb
Defined Under Namespace
Classes: Representer
Constant Summary collapse
- SERVICE =
'SoftLayer_User_Customer_Notification_Virtual_Guest'
Instance Attribute Summary collapse
-
#guest ⇒ Object
Returns the value of attribute guest.
-
#guest_id ⇒ Object
Returns the value of attribute guest_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(template_object = nil) ⇒ Object
- .create_objects(template_objects = nil) ⇒ Object
- .delete_objects(template_objects = nil) ⇒ Object
- .find_by_guest_id(id = nil) ⇒ Object
Instance Method Summary collapse
Methods inherited from Model
all, all_request_for, create, find, #init_headers, parse, request, #request, service_name, #to_hash
Methods included from Model::Operations
extended, #filter, included, #limit, #mask, #request_headers
Instance Attribute Details
#guest ⇒ Object
Returns the value of attribute guest.
11 12 13 |
# File 'lib/softlayer/user/customer/notification/virtual/guest.rb', line 11 def guest @guest end |
#guest_id ⇒ Object
Returns the value of attribute guest_id.
8 9 10 |
# File 'lib/softlayer/user/customer/notification/virtual/guest.rb', line 8 def guest_id @guest_id end |
#id ⇒ Object
Returns the value of attribute id.
9 10 11 |
# File 'lib/softlayer/user/customer/notification/virtual/guest.rb', line 9 def id @id end |
#user ⇒ Object
Returns the value of attribute user.
12 13 14 |
# File 'lib/softlayer/user/customer/notification/virtual/guest.rb', line 12 def user @user end |
#user_id ⇒ Object
Returns the value of attribute user_id.
10 11 12 |
# File 'lib/softlayer/user/customer/notification/virtual/guest.rb', line 10 def user_id @user_id end |
Class Method Details
.create_object(template_object = nil) ⇒ Object
14 15 16 17 |
# File 'lib/softlayer/user/customer/notification/virtual/guest.rb', line 14 def self.create_object(template_object = nil) = {template_object: template_object} request(:create_object, Softlayer::User::Customer::Notification::Virtual::Guest, ) end |
.create_objects(template_objects = nil) ⇒ Object
19 20 21 22 |
# File 'lib/softlayer/user/customer/notification/virtual/guest.rb', line 19 def self.create_objects(template_objects = nil) = {template_objects: template_objects} request(:create_objects, Array[Softlayer::User::Customer::Notification::Virtual::Guest], ) end |
.delete_objects(template_objects = nil) ⇒ Object
24 25 26 27 |
# File 'lib/softlayer/user/customer/notification/virtual/guest.rb', line 24 def self.delete_objects(template_objects = nil) = {template_objects: template_objects} request(:delete_objects, Boolean, ) end |
.find_by_guest_id(id = nil) ⇒ Object
29 30 31 32 |
# File 'lib/softlayer/user/customer/notification/virtual/guest.rb', line 29 def self.find_by_guest_id(id = nil) = {id: id} request(:find_by_guest_id, Array[Softlayer::User::Customer::Notification::Virtual::Guest], ) end |
Instance Method Details
#get_guest ⇒ Object
34 35 36 |
# File 'lib/softlayer/user/customer/notification/virtual/guest.rb', line 34 def get_guest request(:get_guest, Softlayer::Virtual::Guest) end |
#get_object ⇒ Object
38 39 40 |
# File 'lib/softlayer/user/customer/notification/virtual/guest.rb', line 38 def get_object request(:get_object, Softlayer::User::Customer::Notification::Virtual::Guest) end |
#get_user ⇒ Object
42 43 44 |
# File 'lib/softlayer/user/customer/notification/virtual/guest.rb', line 42 def get_user request(:get_user, Softlayer::User::Customer) end |