Sha256: 5412e668ec1bf249bf64d5c29760b4215a84828e198ecd14033aefc6701891d4

Contents?: true

Size: 600 Bytes

Versions: 30

Compression:

Stored size: 600 Bytes

Contents

# frozen_string_literal: true

module Mihari
  module Entities
    class ConfigStatus < Grape::Entity
      expose :type, documentation: { type: String, required: true }
      expose :values, documentation: { type: String, is_array: true, required: true }
      expose :is_configured, documentation: { type: Grape::API::Boolean, required: true }, as: :isConfigured
    end

    class Config < Grape::Entity
      expose :name, documentation: { type: String, required: true }
      expose :status, using: Entities::ConfigStatus, documentation: { type: ConfigStatus, required: true }
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
mihari-4.12.0 lib/mihari/entities/config.rb
mihari-4.11.0 lib/mihari/entities/config.rb
mihari-4.10.0 lib/mihari/entities/config.rb
mihari-4.9.0 lib/mihari/entities/config.rb
mihari-4.8.0 lib/mihari/entities/config.rb
mihari-4.7.4 lib/mihari/entities/config.rb
mihari-4.7.3 lib/mihari/entities/config.rb
mihari-4.7.2 lib/mihari/entities/config.rb
mihari-4.7.1 lib/mihari/entities/config.rb
mihari-4.7.0 lib/mihari/entities/config.rb
mihari-4.6.1 lib/mihari/entities/config.rb
mihari-4.6.0 lib/mihari/entities/config.rb
mihari-4.5.3 lib/mihari/entities/config.rb
mihari-4.5.2 lib/mihari/entities/config.rb
mihari-4.5.1 lib/mihari/entities/config.rb
mihari-4.5.0 lib/mihari/entities/config.rb
mihari-4.4.1 lib/mihari/entities/config.rb
mihari-4.4.0 lib/mihari/entities/config.rb
mihari-4.3.0 lib/mihari/entities/config.rb
mihari-4.2.0 lib/mihari/entities/config.rb