Class: Softlayer::Notification::User::Subscriber::Preference

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/notification/user/subscriber/preference.rb

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Notification_User_Subscriber_Preference'

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

#default_preferenceObject

Returns the value of attribute default_preference.



11
12
13
# File 'lib/softlayer/notification/user/subscriber/preference.rb', line 11

def default_preference
  @default_preference
end

#idObject

Returns the value of attribute id.



7
8
9
# File 'lib/softlayer/notification/user/subscriber/preference.rb', line 7

def id
  @id
end

#notification_preference_idObject

Returns the value of attribute notification_preference_id.



8
9
10
# File 'lib/softlayer/notification/user/subscriber/preference.rb', line 8

def notification_preference_id
  @notification_preference_id
end

#notification_user_subscriberObject

Returns the value of attribute notification_user_subscriber.



12
13
14
# File 'lib/softlayer/notification/user/subscriber/preference.rb', line 12

def notification_user_subscriber
  @notification_user_subscriber
end

#notification_user_subscriber_idObject

Returns the value of attribute notification_user_subscriber_id.



9
10
11
# File 'lib/softlayer/notification/user/subscriber/preference.rb', line 9

def notification_user_subscriber_id
  @notification_user_subscriber_id
end

#valueObject

Returns the value of attribute value.



10
11
12
# File 'lib/softlayer/notification/user/subscriber/preference.rb', line 10

def value
  @value
end

Class Method Details

.create_object(message) ⇒ Object

template_object



15
16
17
# File 'lib/softlayer/notification/user/subscriber/preference.rb', line 15

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

.edit_objects(message) ⇒ Object

template_objects



20
21
22
# File 'lib/softlayer/notification/user/subscriber/preference.rb', line 20

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

Instance Method Details

#get_default_preferenceObject



24
25
26
# File 'lib/softlayer/notification/user/subscriber/preference.rb', line 24

def get_default_preference
  request(:get_default_preference, Softlayer::Notification::Preference)
end

#get_notification_user_subscriberObject



28
29
30
# File 'lib/softlayer/notification/user/subscriber/preference.rb', line 28

def get_notification_user_subscriber
  request(:get_notification_user_subscriber, Softlayer::Notification::User::Subscriber)
end

#get_objectObject



32
33
34
# File 'lib/softlayer/notification/user/subscriber/preference.rb', line 32

def get_object
  request(:get_object, Softlayer::Notification::User::Subscriber::Preference)
end