Class: Natives::HostDetection::Platform
- Inherits:
-
Object
- Object
- Natives::HostDetection::Platform
- Defined in:
- lib/natives/host_detection/platform.rb
Instance Method Summary collapse
-
#initialize ⇒ Platform
constructor
A new instance of Platform.
- #name ⇒ Object
- #ohai_hash ⇒ Object
- #version ⇒ Object
Constructor Details
#initialize ⇒ Platform
Returns a new instance of Platform.
7 8 9 |
# File 'lib/natives/host_detection/platform.rb', line 7 def initialize @ohai = build_ohai end |
Instance Method Details
#name ⇒ Object
11 12 13 |
# File 'lib/natives/host_detection/platform.rb', line 11 def name ohai_hash[:platform] end |
#ohai_hash ⇒ Object
19 20 21 |
# File 'lib/natives/host_detection/platform.rb', line 19 def ohai_hash @ohai end |
#version ⇒ Object
15 16 17 |
# File 'lib/natives/host_detection/platform.rb', line 15 def version ohai_hash[:platform_version] end |