Module: MokiRuby
- Defined in:
- lib/moki_ruby.rb,
lib/moki_ruby/version.rb
Constant Summary collapse
- VERSION =
"0.0.1"
Class Method Summary collapse
- .device_managed_apps(device_id) ⇒ Object
- .device_profiles(device_id) ⇒ Object
- .ios_profiles ⇒ Object
Class Method Details
.device_managed_apps(device_id) ⇒ Object
14 15 16 17 |
# File 'lib/moki_ruby.rb', line 14 def self.device_managed_apps(device_id) data = MokiAPI.device_managed_app_list(device_id).value data.body.map { |app| DeviceManagedApp.from_hash(app) } end |
.device_profiles(device_id) ⇒ Object
9 10 11 12 |
# File 'lib/moki_ruby.rb', line 9 def self.device_profiles(device_id) data = MokiAPI.device_profile_list(device_id).value data.body.map { |profile| IOSProfile.from_hash(profile) } end |
.ios_profiles ⇒ Object
4 5 6 7 |
# File 'lib/moki_ruby.rb', line 4 def self.ios_profiles data = MokiAPI.ios_profiles.value data.body.map { |profile| IOSProfile.from_hash(profile) } end |