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