Class: Softlayer::Notification::User::Subscriber
- Defined in:
- lib/softlayer/notification/user/subscriber.rb,
lib/softlayer/notification/user/subscriber/mobile.rb,
lib/softlayer/notification/user/subscriber/billing.rb,
lib/softlayer/notification/user/subscriber/delivery.rb,
lib/softlayer/notification/user/subscriber/resource.rb,
lib/softlayer/notification/user/subscriber/preference.rb,
lib/softlayer/notification/user/subscriber/delivery/method.rb
Defined Under Namespace
Modules: Delivery Classes: Billing, Mobile, Preference, Representer, Resource
Constant Summary collapse
- SERVICE =
'SoftLayer_Notification_User_Subscriber'
Instance Attribute Summary collapse
-
#active ⇒ Object
Returns the value of attribute active.
-
#delivery_method_count ⇒ Object
Returns the value of attribute delivery_method_count.
-
#delivery_methods ⇒ Object
Returns the value of attribute delivery_methods.
-
#id ⇒ Object
Returns the value of attribute id.
-
#notification ⇒ Object
Returns the value of attribute notification.
-
#notification_id ⇒ Object
Returns the value of attribute notification_id.
-
#preference_count ⇒ Object
Returns the value of attribute preference_count.
-
#preferences ⇒ Object
Returns the value of attribute preferences.
-
#preferences_detail_count ⇒ Object
Returns the value of attribute preferences_detail_count.
-
#preferences_details ⇒ Object
Returns the value of attribute preferences_details.
-
#resource_record ⇒ Object
Returns the value of attribute resource_record.
-
#user_record ⇒ Object
Returns the value of attribute user_record.
-
#user_record_id ⇒ Object
Returns the value of attribute user_record_id.
Class Method Summary collapse
-
.create_object(message) ⇒ Object
template_object.
Instance Method Summary collapse
-
#edit_object(message) ⇒ Object
template_object.
- #get_delivery_methods ⇒ Object
- #get_notification ⇒ Object
- #get_object ⇒ Object
- #get_preferences ⇒ Object
- #get_preferences_details ⇒ Object
- #get_resource_record ⇒ Object
- #get_user_record ⇒ Object
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
#active ⇒ Object
Returns the value of attribute active.
11 12 13 |
# File 'lib/softlayer/notification/user/subscriber.rb', line 11 def active @active end |
#delivery_method_count ⇒ Object
Returns the value of attribute delivery_method_count.
15 16 17 |
# File 'lib/softlayer/notification/user/subscriber.rb', line 15 def delivery_method_count @delivery_method_count end |
#delivery_methods ⇒ Object
Returns the value of attribute delivery_methods.
18 19 20 |
# File 'lib/softlayer/notification/user/subscriber.rb', line 18 def delivery_methods @delivery_methods end |
#id ⇒ Object
Returns the value of attribute id.
12 13 14 |
# File 'lib/softlayer/notification/user/subscriber.rb', line 12 def id @id end |
#notification ⇒ Object
Returns the value of attribute notification.
19 20 21 |
# File 'lib/softlayer/notification/user/subscriber.rb', line 19 def notification @notification end |
#notification_id ⇒ Object
Returns the value of attribute notification_id.
13 14 15 |
# File 'lib/softlayer/notification/user/subscriber.rb', line 13 def notification_id @notification_id end |
#preference_count ⇒ Object
Returns the value of attribute preference_count.
16 17 18 |
# File 'lib/softlayer/notification/user/subscriber.rb', line 16 def preference_count @preference_count end |
#preferences ⇒ Object
Returns the value of attribute preferences.
20 21 22 |
# File 'lib/softlayer/notification/user/subscriber.rb', line 20 def preferences @preferences end |
#preferences_detail_count ⇒ Object
Returns the value of attribute preferences_detail_count.
17 18 19 |
# File 'lib/softlayer/notification/user/subscriber.rb', line 17 def preferences_detail_count @preferences_detail_count end |
#preferences_details ⇒ Object
Returns the value of attribute preferences_details.
21 22 23 |
# File 'lib/softlayer/notification/user/subscriber.rb', line 21 def preferences_details @preferences_details end |
#resource_record ⇒ Object
Returns the value of attribute resource_record.
22 23 24 |
# File 'lib/softlayer/notification/user/subscriber.rb', line 22 def resource_record @resource_record end |
#user_record ⇒ Object
Returns the value of attribute user_record.
23 24 25 |
# File 'lib/softlayer/notification/user/subscriber.rb', line 23 def user_record @user_record end |
#user_record_id ⇒ Object
Returns the value of attribute user_record_id.
14 15 16 |
# File 'lib/softlayer/notification/user/subscriber.rb', line 14 def user_record_id @user_record_id end |
Class Method Details
.create_object(message) ⇒ Object
template_object
26 27 28 |
# File 'lib/softlayer/notification/user/subscriber.rb', line 26 def self.create_object() request(:create_object, Boolean, ) end |
Instance Method Details
#edit_object(message) ⇒ Object
template_object
31 32 33 |
# File 'lib/softlayer/notification/user/subscriber.rb', line 31 def edit_object() request(:edit_object, Boolean, ) end |
#get_delivery_methods ⇒ Object
35 36 37 |
# File 'lib/softlayer/notification/user/subscriber.rb', line 35 def get_delivery_methods request(:get_delivery_methods, Array[Softlayer::Notification::Delivery::Method]) end |
#get_notification ⇒ Object
39 40 41 |
# File 'lib/softlayer/notification/user/subscriber.rb', line 39 def get_notification request(:get_notification, Softlayer::Notification) end |
#get_object ⇒ Object
43 44 45 |
# File 'lib/softlayer/notification/user/subscriber.rb', line 43 def get_object request(:get_object, Softlayer::Notification::User::Subscriber) end |
#get_preferences ⇒ Object
47 48 49 |
# File 'lib/softlayer/notification/user/subscriber.rb', line 47 def get_preferences request(:get_preferences, Array[Softlayer::Notification::User::Subscriber::Preference]) end |
#get_preferences_details ⇒ Object
51 52 53 |
# File 'lib/softlayer/notification/user/subscriber.rb', line 51 def get_preferences_details request(:get_preferences_details, Array[Softlayer::Notification::Preference]) end |
#get_resource_record ⇒ Object
55 56 57 |
# File 'lib/softlayer/notification/user/subscriber.rb', line 55 def get_resource_record request(:get_resource_record, Softlayer::Notification::User::Subscriber::Resource) end |
#get_user_record ⇒ Object
59 60 61 |
# File 'lib/softlayer/notification/user/subscriber.rb', line 59 def get_user_record request(:get_user_record, Softlayer::User::Customer) end |