Class: Softlayer::User::Customer::MobileDevice

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/user/customer/mobile_device.rb,
lib/softlayer/user/customer/mobile_device/type.rb,
lib/softlayer/user/customer/mobile_device/operating_system.rb

Defined Under Namespace

Classes: OperatingSystem, Representer, Type

Constant Summary collapse

SERVICE =
'SoftLayer_User_Customer_MobileDevice'

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

#available_push_notification_subscription_countObject

Returns the value of attribute available_push_notification_subscription_count.



20
21
22
# File 'lib/softlayer/user/customer/mobile_device.rb', line 20

def available_push_notification_subscription_count
  @available_push_notification_subscription_count
end

#available_push_notification_subscriptionsObject

Returns the value of attribute available_push_notification_subscriptions.



22
23
24
# File 'lib/softlayer/user/customer/mobile_device.rb', line 22

def available_push_notification_subscriptions
  @available_push_notification_subscriptions
end

#create_dateObject

Returns the value of attribute create_date.



8
9
10
# File 'lib/softlayer/user/customer/mobile_device.rb', line 8

def create_date
  @create_date
end

#customerObject

Returns the value of attribute customer.



23
24
25
# File 'lib/softlayer/user/customer/mobile_device.rb', line 23

def customer
  @customer
end

#display_resolution_xx_yObject

Returns the value of attribute display_resolution_xx_y.



9
10
11
# File 'lib/softlayer/user/customer/mobile_device.rb', line 9

def display_resolution_xx_y
  @display_resolution_xx_y
end

#idObject

Returns the value of attribute id.



10
11
12
# File 'lib/softlayer/user/customer/mobile_device.rb', line 10

def id
  @id
end

#mobile_device_type_idObject

Returns the value of attribute mobile_device_type_id.



11
12
13
# File 'lib/softlayer/user/customer/mobile_device.rb', line 11

def mobile_device_type_id
  @mobile_device_type_id
end

#mobile_operating_system_idObject

Returns the value of attribute mobile_operating_system_id.



12
13
14
# File 'lib/softlayer/user/customer/mobile_device.rb', line 12

def mobile_operating_system_id
  @mobile_operating_system_id
end

#model_numberObject

Returns the value of attribute model_number.



13
14
15
# File 'lib/softlayer/user/customer/mobile_device.rb', line 13

def model_number
  @model_number
end

#modify_dateObject

Returns the value of attribute modify_date.



14
15
16
# File 'lib/softlayer/user/customer/mobile_device.rb', line 14

def modify_date
  @modify_date
end

#nameObject

Returns the value of attribute name.



15
16
17
# File 'lib/softlayer/user/customer/mobile_device.rb', line 15

def name
  @name
end

#operating_systemObject

Returns the value of attribute operating_system.



24
25
26
# File 'lib/softlayer/user/customer/mobile_device.rb', line 24

def operating_system
  @operating_system
end

#phone_numberObject

Returns the value of attribute phone_number.



16
17
18
# File 'lib/softlayer/user/customer/mobile_device.rb', line 16

def phone_number
  @phone_number
end

#push_notification_subscription_countObject

Returns the value of attribute push_notification_subscription_count.



21
22
23
# File 'lib/softlayer/user/customer/mobile_device.rb', line 21

def push_notification_subscription_count
  @push_notification_subscription_count
end

#push_notification_subscriptionsObject

Returns the value of attribute push_notification_subscriptions.



25
26
27
# File 'lib/softlayer/user/customer/mobile_device.rb', line 25

def push_notification_subscriptions
  @push_notification_subscriptions
end

#serial_numberObject

Returns the value of attribute serial_number.



17
18
19
# File 'lib/softlayer/user/customer/mobile_device.rb', line 17

def serial_number
  @serial_number
end

#tokenObject

Returns the value of attribute token.



18
19
20
# File 'lib/softlayer/user/customer/mobile_device.rb', line 18

def token
  @token
end

#typeObject

Returns the value of attribute type.



26
27
28
# File 'lib/softlayer/user/customer/mobile_device.rb', line 26

def type
  @type
end

#user_idObject

Returns the value of attribute user_id.



19
20
21
# File 'lib/softlayer/user/customer/mobile_device.rb', line 19

def user_id
  @user_id
end

Class Method Details

.create_object(message) ⇒ Object

template_object



29
30
31
# File 'lib/softlayer/user/customer/mobile_device.rb', line 29

def self.create_object(message)
  request(:create_object, Softlayer::User::Customer::MobileDevice, message)
end

Instance Method Details

#delete_objectObject



33
34
35
# File 'lib/softlayer/user/customer/mobile_device.rb', line 33

def delete_object
  request(:delete_object, Boolean)
end

#edit_object(message) ⇒ Object

template_object



38
39
40
# File 'lib/softlayer/user/customer/mobile_device.rb', line 38

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

#get_available_push_notification_subscriptionsObject



42
43
44
# File 'lib/softlayer/user/customer/mobile_device.rb', line 42

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

#get_customerObject



46
47
48
# File 'lib/softlayer/user/customer/mobile_device.rb', line 46

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

#get_objectObject



50
51
52
# File 'lib/softlayer/user/customer/mobile_device.rb', line 50

def get_object
  request(:get_object, Softlayer::User::Customer::MobileDevice)
end

#get_operating_systemObject



54
55
56
# File 'lib/softlayer/user/customer/mobile_device.rb', line 54

def get_operating_system
  request(:get_operating_system, Softlayer::User::Customer::MobileDevice::OperatingSystem)
end

#get_push_notification_subscriptionsObject



58
59
60
# File 'lib/softlayer/user/customer/mobile_device.rb', line 58

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

#get_typeObject



62
63
64
# File 'lib/softlayer/user/customer/mobile_device.rb', line 62

def get_type
  request(:get_type, Softlayer::User::Customer::MobileDevice::Type)
end