Class: Facter::LoadedFact
- Inherits:
-
Object
- Object
- Facter::LoadedFact
- Defined in:
- lib/facter/models/loaded_fact.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
Returns the value of attribute file.
-
#is_env ⇒ Object
Returns the value of attribute is_env.
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name, klass, type = nil, file = nil) ⇒ LoadedFact
constructor
A new instance of LoadedFact.
Constructor Details
#initialize(name, klass, type = nil, file = nil) ⇒ LoadedFact
Returns a new instance of LoadedFact.
8 9 10 11 12 13 14 |
# File 'lib/facter/models/loaded_fact.rb', line 8 def initialize(name, klass, type = nil, file = nil) @name = name @klass = klass @type = type.nil? ? :core : type @file = file @is_env = false end |
Instance Attribute Details
#file ⇒ Object
Returns the value of attribute file.
6 7 8 |
# File 'lib/facter/models/loaded_fact.rb', line 6 def file @file end |
#is_env ⇒ Object
Returns the value of attribute is_env.
6 7 8 |
# File 'lib/facter/models/loaded_fact.rb', line 6 def is_env @is_env end |
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
5 6 7 |
# File 'lib/facter/models/loaded_fact.rb', line 5 def klass @klass end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/facter/models/loaded_fact.rb', line 5 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/facter/models/loaded_fact.rb', line 5 def type @type end |