Class: Softlayer::Notification::Mobile
Defined Under Namespace
Classes: Representer
Constant Summary
collapse
- SERVICE =
'SoftLayer_Notification_Mobile'
Instance Attribute Summary
#id, #key_name, #name, #preference_count, #preferences, #required_preference_count, #required_preferences
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Model
all, all_request_for, create, find, #init_headers, parse, request, #request, service_name, #service_name, #to_hash
extended, #filter, included, #limit, #mask, #request_headers
Class Method Details
.create_subscriber_for_mobile_device(key_name = nil, resource_table_id = nil, user_record_id = nil) ⇒ Object
6
7
8
9
|
# File 'lib/softlayer/notification/mobile.rb', line 6
def self.create_subscriber_for_mobile_device(key_name = nil, resource_table_id = nil, user_record_id = nil)
message = {key_name: key_name, resource_table_id: resource_table_id, user_record_id: user_record_id}
request(:create_subscriber_for_mobile_device, Boolean, message)
end
|
.get_all_objects ⇒ Object
11
12
13
|
# File 'lib/softlayer/notification/mobile.rb', line 11
def self.get_all_objects
request(:get_all_objects, Array[Softlayer::Notification])
end
|
Instance Method Details
#get_object ⇒ Object
15
16
17
|
# File 'lib/softlayer/notification/mobile.rb', line 15
def get_object
request(:get_object, Softlayer::Notification::Mobile)
end
|
#get_preferences ⇒ Object
19
20
21
|
# File 'lib/softlayer/notification/mobile.rb', line 19
def get_preferences
request(:get_preferences, Array[Softlayer::Notification::Preference])
end
|
#get_required_preferences ⇒ Object
23
24
25
|
# File 'lib/softlayer/notification/mobile.rb', line 23
def get_required_preferences
request(:get_required_preferences, Array[Softlayer::Notification::Preference])
end
|