Sha256: f83e0a119b33522554cb16af99939b160c3912f93078040a7325b8729aa4b154
Contents?: true
Size: 517 Bytes
Versions: 12
Compression:
Stored size: 517 Bytes
Contents
# frozen_string_literal: true module Seam module Clients class AccessCodesSimulate def initialize(client:, defaults:) @client = client @defaults = defaults end def create_unmanaged_access_code(code:, device_id:, name:) res = @client.post("/access_codes/simulate/create_unmanaged_access_code", {code: code, device_id: device_id, name: name}.compact) Seam::Resources::UnmanagedAccessCode.load_from_response(res.body["access_code"]) end end end end
Version data entries
12 entries across 12 versions & 1 rubygems