Class: Facter::SearchedFact

Inherits:
Object
  • Object
show all
Defined in:
lib/facter/models/searched_fact.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fact_name, fact_class, filter_tokens, user_query, type) ⇒ SearchedFact

Returns a new instance of SearchedFact.



8
9
10
11
12
13
14
# File 'lib/facter/models/searched_fact.rb', line 8

def initialize(fact_name, fact_class, filter_tokens, user_query, type)
  @name = fact_name
  @fact_class = fact_class
  @filter_tokens = filter_tokens
  @user_query = user_query
  @type = type
end

Instance Attribute Details

#fact_classObject (readonly)

Returns the value of attribute fact_class.



5
6
7
# File 'lib/facter/models/searched_fact.rb', line 5

def fact_class
  @fact_class
end

#fileObject

Returns the value of attribute file.



6
7
8
# File 'lib/facter/models/searched_fact.rb', line 6

def file
  @file
end

#filter_tokensObject (readonly)

Returns the value of attribute filter_tokens.



5
6
7
# File 'lib/facter/models/searched_fact.rb', line 5

def filter_tokens
  @filter_tokens
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/facter/models/searched_fact.rb', line 5

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



5
6
7
# File 'lib/facter/models/searched_fact.rb', line 5

def type
  @type
end

#user_queryObject (readonly)

Returns the value of attribute user_query.



5
6
7
# File 'lib/facter/models/searched_fact.rb', line 5

def user_query
  @user_query
end