Class: MobileProvision::Representation
- Inherits:
-
Object
- Object
- MobileProvision::Representation
- 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
-
#app_id ⇒ Object
readonly
Returns the value of attribute app_id.
-
#bundle_id ⇒ Object
readonly
Returns the value of attribute bundle_id.
-
#certificate ⇒ Object
readonly
Returns the value of attribute certificate.
-
#expiration_date ⇒ Object
readonly
Returns the value of attribute expiration_date.
-
#has_associated_domains ⇒ Object
readonly
Returns the value of attribute has_associated_domains.
-
#profile_type ⇒ Object
readonly
Returns the value of attribute profile_type.
-
#registered_udids ⇒ Object
readonly
Returns the value of attribute registered_udids.
-
#team_id ⇒ Object
readonly
Returns the value of attribute team_id.
Instance Method Summary collapse
-
#initialize(file) ⇒ Representation
constructor
A new instance of Representation.
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_id ⇒ Object (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_id ⇒ Object (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 |
#certificate ⇒ Object (readonly)
Returns the value of attribute certificate.
15 16 17 |
# File 'lib/mobile_provision/representation.rb', line 15 def certificate @certificate end |
#expiration_date ⇒ Object (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_domains ⇒ Object (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_type ⇒ Object (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_udids ⇒ Object (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_id ⇒ Object (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 |