Sha256: 80fdc24f9f6e6c98870b1497229f6846047c67fc8959bb78c2863d5f6db2e3a8
Contents?: true
Size: 391 Bytes
Versions: 2
Compression:
Stored size: 391 Bytes
Contents
require "json" module Jess # Mobile device-related JSS API operations class MobileDevices attr_reader :http_client def initialize(http_client) @http_client = http_client end # Retrieve a mobile device by ID. def find(id) json = JSON.parse(http_client.get("mobiledevices/id/#{id}")) MobileDevice.new(json.fetch("mobile_device")) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jess-0.2.0 | lib/jess/mobile_devices.rb |
jess-0.1.0 | lib/jess/mobile_devices.rb |