class Facter::ResolvedFact

Attributes

file[RW]
filter_tokens[RW]
name[R]
type[R]
user_query[RW]
value[RW]

Public Class Methods

new(name, value = '', type = :core, user_query = nil, filter_tokens = []) click to toggle source
# File lib/facter/models/resolved_fact.rb, line 7
def initialize(name, value = '', type = :core, user_query = nil, filter_tokens = [])
  @name = name
  @value = Utils.deep_stringify_keys(value)
  @type = type
  @user_query = user_query
  @filter_tokens = filter_tokens
end

Public Instance Methods

core?() click to toggle source
# File lib/facter/models/resolved_fact.rb, line 19
def core?
  type == :core
end
legacy?() click to toggle source
# File lib/facter/models/resolved_fact.rb, line 15
def legacy?
  type == :legacy
end
to_s() click to toggle source
# File lib/facter/models/resolved_fact.rb, line 23
def to_s
  @value.to_s
end