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

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

Direct Known Subclasses

Billing, Mobile

Defined Under Namespace

Modules: Delivery Classes: Billing, Mobile, Preference, Representer, Resource

Constant Summary collapse

SERVICE =
'SoftLayer_Notification_User_Subscriber'

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

#activeObject

Returns the value of attribute active.



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

def active
  @active
end

#delivery_method_countObject

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_methodsObject

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

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#notificationObject

Returns the value of attribute notification.



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

def notification
  @notification
end

#notification_idObject

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_countObject

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

#preferencesObject

Returns the value of attribute preferences.



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

def preferences
  @preferences
end

#preferences_detail_countObject

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_detailsObject

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_recordObject

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_recordObject

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_idObject

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(message)
  request(:create_object, Boolean, message)
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(message)
  request(:edit_object, Boolean, message)
end

#get_delivery_methodsObject



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_notificationObject



39
40
41
# File 'lib/softlayer/notification/user/subscriber.rb', line 39

def get_notification
  request(:get_notification, Softlayer::Notification)
end

#get_objectObject



43
44
45
# File 'lib/softlayer/notification/user/subscriber.rb', line 43

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

#get_preferencesObject



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_detailsObject



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_recordObject



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_recordObject



59
60
61
# File 'lib/softlayer/notification/user/subscriber.rb', line 59

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