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

Inherits:
Softlayer::Notification::User::Subscriber show all
Defined in:
lib/softlayer/notification/user/subscriber/mobile.rb

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Notification_User_Subscriber_Mobile'

Instance Attribute Summary

Attributes inherited from Softlayer::Notification::User::Subscriber

#active, #delivery_method_count, #delivery_methods, #id, #notification, #notification_id, #preference_count, #preferences, #preferences_detail_count, #preferences_details, #resource_record, #user_record, #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

Class Method Details

.create_object(message) ⇒ Object

template_object



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

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

Instance Method Details

#clear_snooze_timerObject



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

def clear_snooze_timer
  request(:clear_snooze_timer, Boolean)
end

#edit_object(message) ⇒ Object

template_object



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

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

#get_delivery_methodsObject



22
23
24
# File 'lib/softlayer/notification/user/subscriber/mobile.rb', line 22

def get_delivery_methods
  request(:get_delivery_methods, Array[Softlayer::Notification::Delivery::Method])
end

#get_notificationObject



26
27
28
# File 'lib/softlayer/notification/user/subscriber/mobile.rb', line 26

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

#get_objectObject



30
31
32
# File 'lib/softlayer/notification/user/subscriber/mobile.rb', line 30

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

#get_preferencesObject



34
35
36
# File 'lib/softlayer/notification/user/subscriber/mobile.rb', line 34

def get_preferences
  request(:get_preferences, Array[Softlayer::Notification::User::Subscriber::Preference])
end

#get_preferences_detailsObject



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

def get_preferences_details
  request(:get_preferences_details, Array[Softlayer::Notification::Preference])
end

#get_resource_recordObject



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

def get_resource_record
  request(:get_resource_record, Softlayer::Notification::User::Subscriber::Resource)
end

#get_user_recordObject



46
47
48
# File 'lib/softlayer/notification/user/subscriber/mobile.rb', line 46

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

#set_snooze_timer(message) ⇒ Object

start end



52
53
54
# File 'lib/softlayer/notification/user/subscriber/mobile.rb', line 52

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