class Zype::Pin

Read more at docs.zype.com/v1.0/reference#device-linking

@since 0.15.0

Public Instance Methods

acquire(linked_device_id:) click to toggle source

Create the device pin

@param linked_device_id [String] @return [Hash] the device pin

# File lib/zype/models/pin.rb, line 18
def acquire(linked_device_id:)
  client.execute(method: :post, path: '/pin/acquire', params: { linked_device_id: linked_device_id })
end
status(linked_device_id:) click to toggle source

Retrieve the pin for the device

@param linked_device_id [String] @return [Hash] the device pin

# File lib/zype/models/pin.rb, line 10
def status(linked_device_id:)
  client.execute(method: :get, path: '/pin/status', params: { linked_device_id: linked_device_id })
end