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'
BUNDLE_ID_KEY =
'application-identifier'
CERTIFICATE_KEY =
'DeveloperCertificates'
INHOUSE_PROFILE_KEY =
'ProvisionsAllDevices'
ADHOC_PROFILE_KEY =
'ProvisionedDevices'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file) ⇒ Representation

Returns a new instance of Representation.



15
16
17
18
19
20
21
22
# File 'lib/mobile_provision/representation.rb', line 15

def initialize(file)
  read!(file)
  @expiration_date = build_expiration_date
  @certificate = build_certificate
  @bundle_id = build_bundle_id
  @profile_type = build_profile_type
  @registered_udids = build_registered_udids
end

Instance Attribute Details

#bundle_idObject (readonly)

Returns the value of attribute bundle_id.



13
14
15
# File 'lib/mobile_provision/representation.rb', line 13

def bundle_id
  @bundle_id
end

#certificateObject (readonly)

Returns the value of attribute certificate.



13
14
15
# File 'lib/mobile_provision/representation.rb', line 13

def certificate
  @certificate
end

#expiration_dateObject (readonly)

Returns the value of attribute expiration_date.



13
14
15
# File 'lib/mobile_provision/representation.rb', line 13

def expiration_date
  @expiration_date
end

#profile_typeObject (readonly)

Returns the value of attribute profile_type.



13
14
15
# File 'lib/mobile_provision/representation.rb', line 13

def profile_type
  @profile_type
end

#registered_udidsObject (readonly)

Returns the value of attribute registered_udids.



13
14
15
# File 'lib/mobile_provision/representation.rb', line 13

def registered_udids
  @registered_udids
end