class Spaceship::Portal::AppService

Represents a single application service (its state to be more precise) on the Apple Dev Portal

Attributes

service_id[RW]

@return (String) The identifier used by the Dev Portal to represent this service @example

"homeKit"
service_uri[RW]

@return (String) The service URI for this service @example

"account/ios/identifiers/updateService.action"
value[RW]

@return (Object) The current value for this service @example

false

Public Class Methods

app_group() click to toggle source
# File lib/spaceship/portal/app_service.rb, line 34
def app_group
  self::AppGroup
end
apple_pay() click to toggle source
# File lib/spaceship/portal/app_service.rb, line 38
def apple_pay
  self::ApplePay
end
associated_domains() click to toggle source
# File lib/spaceship/portal/app_service.rb, line 42
def associated_domains
  self::AssociatedDomains
end
cloud_kit() click to toggle source
# File lib/spaceship/portal/app_service.rb, line 70
def cloud_kit
  self::CloudKit
end
data_protection() click to toggle source
# File lib/spaceship/portal/app_service.rb, line 46
def data_protection
  self::DataProtection
end
game_center() click to toggle source
# File lib/spaceship/portal/app_service.rb, line 50
def game_center
  self::GameCenter
end
health_kit() click to toggle source
# File lib/spaceship/portal/app_service.rb, line 54
def health_kit
  self::HealthKit
end
home_kit() click to toggle source
# File lib/spaceship/portal/app_service.rb, line 58
def home_kit
  self::HomeKit
end
icloud() click to toggle source
# File lib/spaceship/portal/app_service.rb, line 66
def icloud
  self::Cloud
end
in_app_purchase() click to toggle source
# File lib/spaceship/portal/app_service.rb, line 74
def in_app_purchase
  self::InAppPurchase
end
inter_app_audio() click to toggle source
# File lib/spaceship/portal/app_service.rb, line 78
def inter_app_audio
  self::InterAppAudio
end
new(service_id, value) click to toggle source
# File lib/spaceship/portal/app_service.rb, line 20
def initialize(service_id, value)
  @service_id = service_id
  @value = value

  if @service_id == "push"
    # Push notifications have a special URI
    @service_uri = "account/ios/identifiers/updatePushService.action"
  else
    # Default service URI
    @service_uri = "account/ios/identifiers/updateService.action"
  end
end
passbook() click to toggle source
# File lib/spaceship/portal/app_service.rb, line 82
def passbook
  self::Passbook
end
push_notification() click to toggle source
# File lib/spaceship/portal/app_service.rb, line 86
def push_notification
  self::PushNotification
end
siri_kit() click to toggle source
# File lib/spaceship/portal/app_service.rb, line 90
def siri_kit
  self::SiriKit
end
vpn_configuration() click to toggle source
# File lib/spaceship/portal/app_service.rb, line 94
def vpn_configuration
  self::VPNConfiguration
end
wireless_accessory() click to toggle source
# File lib/spaceship/portal/app_service.rb, line 62
def wireless_accessory
  self::WirelessAccessory
end

Public Instance Methods

==(other) click to toggle source
# 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