HabitatMap/AirCasting

View on GitHub
app/models/api/user_settings.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'dry-validation'
require 'dry-struct'

module Api::UserSettings
  module Types
    include Dry::Types.module
  end

  Schema =
    Dry::Validation.Schema { required(:session_stopped_alert).filled(:bool?) }

  class Struct < Dry::Struct
    attribute :session_stopped_alert, Types::Strict::Bool
  end
end