Sha256: 5527e9f5231eb860d87cc93f45cda07e9d617680f747769307233da1df4eca17
Contents?: true
Size: 496 Bytes
Versions: 1
Compression:
Stored size: 496 Bytes
Contents
# frozen_string_literal: true module Facter class ResolvedFact attr_reader :name, :type attr_accessor :user_query, :filter_tokens, :value def initialize(name, value = '', type = :core) @name = name @value = Utils.deep_stringify_keys(value) type =~ /core|legacy/ ? @type = type : (raise ArgumentError, 'The type provided for fact is not legacy or core!') end def legacy? type == :legacy end def core? type == :core end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facter-4.0.9.pre | lib/models/resolved_fact.rb |