lib/access/api.rb in access-2.0.39 vs lib/access/api.rb in access-2.0.40

- old
+ new

@@ -156,19 +156,31 @@ UserResponse.new(response) end end # Member - def member_show(member_key, options = {}) request.get("/members/#{member_key}", 'mms', options) do |response| MemberResponse.new(response) end end def member_update(member_key, options = {}) request.put("/members/#{member_key}?program_id=#{options.delete(:program_id)}", 'mms', options) do |response| MemberResponse.new(response) + end + end + + # Device + def search_devices(member_key, options = {}) + request.get("/members/#{member_key}/devices", 'mms', options) do |response| + DeviceResponse.new(response) + end + end + + def find_device(member_key, options = {}) + request.get("/members/#{member_key}/devices/#{options.delete(:udid)}", 'mms', options) do |response| + DeviceResponse.new(response) end end # Program def find_program_provisioning_method(pcid)