Class: LingutestClient::Candidate

Inherits:
Base
  • Object
show all
Includes:
Api::Operations::Create, Api::Operations::Delete, Api::Operations::Find, Api::Operations::Update, Api::Resource
Defined in:
lib/lingutest_client/candidate.rb

Constant Summary collapse

CreateSchema =
Dry::Schema.Params do
  required(:fname).filled(:string)
  required(:lname).filled(:string)
  required(:email).filled(Types::Email)
  optional(:locale).filled(:string)
  optional(:mobile).filled(:string)
  optional(:gender).filled(Types::Gender)
  optional(:ssn).filled(Types::Ssn)
end
UpdateSchema =
Dry::Schema.Params do
  optional(:fname).filled(:string)
  optional(:lname).filled(:string)
  optional(:email).filled(Types::Email)
  optional(:locale).filled(:string)
  optional(:mobile).filled(:string)
  optional(:gender).filled(Types::Gender)
  optional(:ssn).filled(Types::Ssn)
end
FilterSchema =
Dry::Schema.Params do
  optional(:page)
  optional(:per_page)
  optional(:email_eq).filled(Types::Email)
  optional(:fname_eq).filled(:string)
  optional(:lname_eq).filled(:string)
end
OBJECT_NAME =
:candidate

Method Summary

Methods included from Api::Operations::Update

included

Methods included from Api::Operations::Delete

included

Methods included from Api::Operations::Find

included

Methods included from Api::Operations::Create

included

Methods included from Api::Resource

included

Methods inherited from Base

#to_hash