Class: Struct::Usage
- Inherits:
-
Struct
- Object
- Struct
- Struct::Usage
- Defined in:
- lib/cpu/usage.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#idle ⇒ Object
Returns the value of attribute idle.
-
#nice ⇒ Object
Returns the value of attribute nice.
-
#processor_id ⇒ Object
Returns the value of attribute processor_id.
-
#start_at ⇒ Object
Returns the value of attribute start_at.
-
#stop_at ⇒ Object
Returns the value of attribute stop_at.
-
#system ⇒ Object
Returns the value of attribute system.
-
#usage ⇒ Object
Returns the value of attribute usage.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Attribute Details
#idle ⇒ Object
Returns the value of attribute idle
2 3 4 |
# File 'lib/cpu/usage.rb', line 2 def idle @idle end |
#nice ⇒ Object
Returns the value of attribute nice
2 3 4 |
# File 'lib/cpu/usage.rb', line 2 def nice @nice end |
#processor_id ⇒ Object
Returns the value of attribute processor_id
2 3 4 |
# File 'lib/cpu/usage.rb', line 2 def processor_id @processor_id end |
#start_at ⇒ Object
Returns the value of attribute start_at
2 3 4 |
# File 'lib/cpu/usage.rb', line 2 def start_at @start_at end |
#stop_at ⇒ Object
Returns the value of attribute stop_at
2 3 4 |
# File 'lib/cpu/usage.rb', line 2 def stop_at @stop_at end |
#system ⇒ Object
Returns the value of attribute system
2 3 4 |
# File 'lib/cpu/usage.rb', line 2 def system @system end |
#usage ⇒ Object
Returns the value of attribute usage
2 3 4 |
# File 'lib/cpu/usage.rb', line 2 def usage @usage end |
#user ⇒ Object
Returns the value of attribute user
2 3 4 |
# File 'lib/cpu/usage.rb', line 2 def user @user end |