Class: Facts::Macosx::Processors::Speed
- Inherits:
-
Object
- Object
- Facts::Macosx::Processors::Speed
- Defined in:
- lib/facter/facts/macosx/processors/speed.rb
Constant Summary collapse
- FACT_NAME =
'processors.speed'
Instance Method Summary collapse
Instance Method Details
#call_the_resolver ⇒ Object
9 10 11 12 13 |
# File 'lib/facter/facts/macosx/processors/speed.rb', line 9 def call_the_resolver fact_value = Facter::Resolvers::Macosx::Processors.resolve(:speed) speed = Facter::Util::Facts::UnitConverter.hertz_to_human_readable(fact_value) Facter::ResolvedFact.new(FACT_NAME, speed) end |