Class: Spaceship::Portal::AppService
- Inherits:
-
Object
- Object
- Spaceship::Portal::AppService
show all
- Defined in:
- lib/spaceship/portal/app_service.rb
Overview
Represents a single application service (its state to be more precise) on the Apple Dev Portal
Defined Under Namespace
Modules: AppGroup, ApplePay, AssociatedDomains, Cloud, CloudKit, DataProtection, GameCenter, HealthKit, HomeKit, InAppPurchase, InterAppAudio, Passbook, PushNotification, SiriKit, VPNConfiguration, WirelessAccessory
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(service_id, value) ⇒ AppService
Returns a new instance of AppService.
20
21
22
23
24
25
26
27
28
29
30
31
|
# File 'lib/spaceship/portal/app_service.rb', line 20
def initialize(service_id, value)
@service_id = service_id
@value = value
if @service_id == "push"
@service_uri = "account/ios/identifiers/updatePushService.action"
else
@service_uri = "account/ios/identifiers/updateService.action"
end
end
|
Instance Attribute Details
#service_id ⇒ String
Returns The identifier used by the Dev Portal to represent this service.
8
9
10
|
# File 'lib/spaceship/portal/app_service.rb', line 8
def service_id
@service_id
end
|
#service_uri ⇒ String
Returns The service URI for this service.
18
19
20
|
# File 'lib/spaceship/portal/app_service.rb', line 18
def service_uri
@service_uri
end
|
#value ⇒ Object
Returns The current value for this service.
13
14
15
|
# File 'lib/spaceship/portal/app_service.rb', line 13
def value
@value
end
|
Class Method Details
.app_group ⇒ Object
34
35
36
|
# File 'lib/spaceship/portal/app_service.rb', line 34
def app_group
self::AppGroup
end
|
.apple_pay ⇒ Object
38
39
40
|
# File 'lib/spaceship/portal/app_service.rb', line 38
def apple_pay
self::ApplePay
end
|
.associated_domains ⇒ Object
42
43
44
|
# File 'lib/spaceship/portal/app_service.rb', line 42
def associated_domains
self::AssociatedDomains
end
|
.cloud_kit ⇒ Object
70
71
72
|
# File 'lib/spaceship/portal/app_service.rb', line 70
def cloud_kit
self::CloudKit
end
|
.data_protection ⇒ Object
46
47
48
|
# File 'lib/spaceship/portal/app_service.rb', line 46
def data_protection
self::DataProtection
end
|
.game_center ⇒ Object
50
51
52
|
# File 'lib/spaceship/portal/app_service.rb', line 50
def game_center
self::GameCenter
end
|
.health_kit ⇒ Object
54
55
56
|
# File 'lib/spaceship/portal/app_service.rb', line 54
def health_kit
self::HealthKit
end
|
.home_kit ⇒ Object
58
59
60
|
# File 'lib/spaceship/portal/app_service.rb', line 58
def home_kit
self::HomeKit
end
|
.icloud ⇒ Object
66
67
68
|
# File 'lib/spaceship/portal/app_service.rb', line 66
def icloud
self::Cloud
end
|
.in_app_purchase ⇒ Object
74
75
76
|
# File 'lib/spaceship/portal/app_service.rb', line 74
def in_app_purchase
self::InAppPurchase
end
|
.inter_app_audio ⇒ Object
78
79
80
|
# File 'lib/spaceship/portal/app_service.rb', line 78
def inter_app_audio
self::InterAppAudio
end
|
.passbook ⇒ Object
82
83
84
|
# File 'lib/spaceship/portal/app_service.rb', line 82
def passbook
self::Passbook
end
|
.push_notification ⇒ Object
86
87
88
|
# File 'lib/spaceship/portal/app_service.rb', line 86
def push_notification
self::PushNotification
end
|
.siri_kit ⇒ Object
90
91
92
|
# File 'lib/spaceship/portal/app_service.rb', line 90
def siri_kit
self::SiriKit
end
|
.vpn_configuration ⇒ Object
94
95
96
|
# File 'lib/spaceship/portal/app_service.rb', line 94
def vpn_configuration
self::VPNConfiguration
end
|
.wireless_accessory ⇒ Object
62
63
64
|
# File 'lib/spaceship/portal/app_service.rb', line 62
def wireless_accessory
self::WirelessAccessory
end
|
Instance Method Details
#==(other) ⇒ Object
99
100
101
102
103
104
|
# File 'lib/spaceship/portal/app_service.rb', line 99
def ==(other)
self.class == other.class &&
self.service_id == other.service_id &&
self.value == other.value &&
self.service_uri == other.service_uri
end
|