class Locked::Commands::Identify

Public Class Methods

new(context) click to toggle source
# File lib/locked/commands/identify.rb, line 6
def initialize(context)
  @context = context
end

Public Instance Methods

build(options = {}) click to toggle source
# File lib/locked/commands/identify.rb, line 10
def build(options = {})
  Locked::Validators::NotSupported.call(options, %i[properties])
  context = Locked::Context::Merger.call(@context, options[:context])
  context = Locked::Context::Sanitizer.call(context)

  Locked::Command.new(
    'identify',
    options.merge(context: context),
    :post
  )
end