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

Version Path
seam-2.3.0 lib/seam/routes/clients/access_codes_simulate.rb
seam-2.2.0 lib/seam/routes/clients/access_codes_simulate.rb
seam-2.1.0 lib/seam/routes/clients/access_codes_simulate.rb
seam-2.0.1 lib/seam/routes/clients/access_codes_simulate.rb
seam-2.0.0 lib/seam/routes/clients/access_codes_simulate.rb
seam-2.0.0rc0 lib/seam/routes/clients/access_codes_simulate.rb
seam-2.0.0b5 lib/seam/routes/clients/access_codes_simulate.rb
seam-2.0.0b4 lib/seam/routes/clients/access_codes_simulate.rb
seam-2.0.0b3 lib/seam/routes/clients/access_codes_simulate.rb
seam-2.0.0b2 lib/seam/routes/clients/access_codes_simulate.rb
seam-2.0.0b1 lib/seam/routes/clients/access_codes_simulate.rb
seam-2.0.0b0 lib/seam/routes/clients/access_codes_simulate.rb