Class: KPM::SystemProxy::OsInformation
- Inherits:
-
Object
- Object
- KPM::SystemProxy::OsInformation
- Defined in:
- lib/kpm/system_helpers/os_information.rb
Instance Attribute Summary collapse
-
#labels ⇒ Object
readonly
Returns the value of attribute labels.
-
#os_info ⇒ Object
readonly
Returns the value of attribute os_info.
Instance Method Summary collapse
-
#initialize ⇒ OsInformation
constructor
A new instance of OsInformation.
Constructor Details
#initialize ⇒ OsInformation
Returns a new instance of OsInformation.
8 9 10 11 12 |
# File 'lib/kpm/system_helpers/os_information.rb', line 8 def initialize @os_info = fetch @labels = [{ label: :os_detail }, { label: :value }] end |
Instance Attribute Details
#labels ⇒ Object (readonly)
Returns the value of attribute labels.
6 7 8 |
# File 'lib/kpm/system_helpers/os_information.rb', line 6 def labels @labels end |
#os_info ⇒ Object (readonly)
Returns the value of attribute os_info.
6 7 8 |
# File 'lib/kpm/system_helpers/os_information.rb', line 6 def os_info @os_info end |