Class: MobileProvision::Representation

Inherits:
Object
  • Object
show all
Defined in:
lib/mobile_provision/representation.rb

Constant Summary collapse

EXPIRATION_DATE_KEY =
'ExpirationDate'
ENTITLEMENTS_KEY =
'Entitlements'
APP_ID_KEY =
'application-identifier'
CERTIFICATE_KEY =
'DeveloperCertificates'
INHOUSE_PROFILE_KEY =
'ProvisionsAllDevices'
ADHOC_PROFILE_KEY =
'ProvisionedDevices'
TEAM_ID_KEY =
'com.apple.developer.team-identifier'
HAS_ASSOCIATED_DOMAINS =
'com.apple.developer.associated-domains'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file) ⇒ Representation

Returns a new instance of Representation.


17
18
19
20
21
22
23
24
25
26
27
# File 'lib/mobile_provision/representation.rb', line 17

def initialize(file)
  read!(file)
  @expiration_date = build_expiration_date
  @certificate = build_certificate
  @app_id = build_app_id
  @profile_type = build_profile_type
  @registered_udids = build_registered_udids
  @team_id = build_team_id
  @bundle_id = build_bundle_id
  @has_associated_domains = has_associated_domains?
end

Instance Attribute Details

#app_idObject (readonly)

Returns the value of attribute app_id.


15
16
17
# File 'lib/mobile_provision/representation.rb', line 15

def app_id
  @app_id
end

#bundle_idObject (readonly)

Returns the value of attribute bundle_id.


15
16
17
# File 'lib/mobile_provision/representation.rb', line 15

def bundle_id
  @bundle_id
end

#certificateObject (readonly)

Returns the value of attribute certificate.


15
16
17
# File 'lib/mobile_provision/representation.rb', line 15

def certificate
  @certificate
end

#expiration_dateObject (readonly)

Returns the value of attribute expiration_date.


15
16
17
# File 'lib/mobile_provision/representation.rb', line 15

def expiration_date
  @expiration_date
end

#has_associated_domainsObject (readonly)

Returns the value of attribute has_associated_domains.


15
16
17
# File 'lib/mobile_provision/representation.rb', line 15

def has_associated_domains
  @has_associated_domains
end

#profile_typeObject (readonly)

Returns the value of attribute profile_type.


15
16
17
# File 'lib/mobile_provision/representation.rb', line 15

def profile_type
  @profile_type
end

#registered_udidsObject (readonly)

Returns the value of attribute registered_udids.


15
16
17
# File 'lib/mobile_provision/representation.rb', line 15

def registered_udids
  @registered_udids
end

#team_idObject (readonly)

Returns the value of attribute team_id.


15
16
17
# File 'lib/mobile_provision/representation.rb', line 15

def team_id
  @team_id
end