Class: Facter::SearchedFact
- Inherits:
-
Object
- Object
- Facter::SearchedFact
- Defined in:
- lib/facter/models/searched_fact.rb
Instance Attribute Summary collapse
-
#fact_class ⇒ Object
readonly
Returns the value of attribute fact_class.
-
#file ⇒ Object
Returns the value of attribute file.
-
#filter_tokens ⇒ Object
readonly
Returns the value of attribute filter_tokens.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#user_query ⇒ Object
readonly
Returns the value of attribute user_query.
Instance Method Summary collapse
-
#initialize(fact_name, fact_class, filter_tokens, user_query, type) ⇒ SearchedFact
constructor
A new instance of SearchedFact.
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_class ⇒ Object (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 |
#file ⇒ Object
Returns the value of attribute file.
6 7 8 |
# File 'lib/facter/models/searched_fact.rb', line 6 def file @file end |
#filter_tokens ⇒ Object (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 |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/facter/models/searched_fact.rb', line 5 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/facter/models/searched_fact.rb', line 5 def type @type end |
#user_query ⇒ Object (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 |