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

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

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Notification_User_Subscriber_Billing'

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



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

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

Instance Method Details

#edit_object(message) ⇒ Object

template_object



14
15
16
# File 'lib/softlayer/notification/user/subscriber/billing.rb', line 14

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

#get_delivery_methodsObject



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

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

#get_notificationObject



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

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

#get_objectObject



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

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

#get_preferencesObject



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

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

#get_preferences_detailsObject



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

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

#get_resource_recordObject



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

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

#get_user_recordObject



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

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