Class: IOS8LastLaunchServicesMapWrapper
- Inherits:
-
Object
- Object
- IOS8LastLaunchServicesMapWrapper
- Defined in:
- lib/lib/ios8_last_launch_services_map_wrapper.rb
Instance Method Summary collapse
- #data_path_by_bundle_id(bundle_id) ⇒ Object
-
#initialize(plist_file) ⇒ IOS8LastLaunchServicesMapWrapper
constructor
A new instance of IOS8LastLaunchServicesMapWrapper.
- #keychain_access_groups_by_bundle_id(bundle_id) ⇒ Object
Constructor Details
#initialize(plist_file) ⇒ IOS8LastLaunchServicesMapWrapper
5 6 7 8 9 |
# File 'lib/lib/ios8_last_launch_services_map_wrapper.rb', line 5 def initialize plist_file @plist_file = plist_file @plist_data = Plist4r.open @plist_file end |
Instance Method Details
#data_path_by_bundle_id(bundle_id) ⇒ Object
12 13 14 |
# File 'lib/lib/ios8_last_launch_services_map_wrapper.rb', line 12 def data_path_by_bundle_id bundle_id @plist_data.to_hash["User"][bundle_id]["Container"] end |
#keychain_access_groups_by_bundle_id(bundle_id) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/lib/ios8_last_launch_services_map_wrapper.rb', line 17 def keychain_access_groups_by_bundle_id bundle_id begin @plist_data.to_hash["User"][bundle_id]["Entitlements"]["keychain-access-groups"] rescue "" end end |