Sha256: 48f3b5b11fe2e8a2fe3cdb6c0152561599f24c4ed109a676373592af6a1bcb1a
Contents?: true
Size: 680 Bytes
Versions: 81
Compression:
Stored size: 680 Bytes
Contents
module ForemanRemoteExecution class ProviderInput attr_reader :name, :label, :description, :options, :value_type, :required attr_accessor :value def initialize(name:, label:, value:, description: nil, options: nil, value_type: nil, required: false, hidden: false) @name = name @label = label @value = value @description = description @options = options @value_type = value_type @required = required @hidden = hidden end def template_input self end def hidden_value? @hidden end def options_array options.blank? ? [] : options.split(/\r?\n/).map(&:strip) end end end
Version data entries
81 entries across 81 versions & 1 rubygems