Class: Struct::Usage

Inherits:
Struct
  • Object
show all
Defined in:
lib/cpu/usage.rb

Direct Known Subclasses

CPU::Usage

Instance Attribute Summary collapse

Instance Attribute Details

#idleObject

Returns the value of attribute idle

Returns:

  • (Object)

    the current value of idle



2
3
4
# File 'lib/cpu/usage.rb', line 2

def idle
  @idle
end

#niceObject

Returns the value of attribute nice

Returns:

  • (Object)

    the current value of nice



2
3
4
# File 'lib/cpu/usage.rb', line 2

def nice
  @nice
end

#processor_idObject

Returns the value of attribute processor_id

Returns:

  • (Object)

    the current value of processor_id



2
3
4
# File 'lib/cpu/usage.rb', line 2

def processor_id
  @processor_id
end

#start_atObject

Returns the value of attribute start_at

Returns:

  • (Object)

    the current value of start_at



2
3
4
# File 'lib/cpu/usage.rb', line 2

def start_at
  @start_at
end

#stop_atObject

Returns the value of attribute stop_at

Returns:

  • (Object)

    the current value of stop_at



2
3
4
# File 'lib/cpu/usage.rb', line 2

def stop_at
  @stop_at
end

#systemObject

Returns the value of attribute system

Returns:

  • (Object)

    the current value of system



2
3
4
# File 'lib/cpu/usage.rb', line 2

def system
  @system
end

#usageObject

Returns the value of attribute usage

Returns:

  • (Object)

    the current value of usage



2
3
4
# File 'lib/cpu/usage.rb', line 2

def usage
  @usage
end

#userObject

Returns the value of attribute user

Returns:

  • (Object)

    the current value of user



2
3
4
# File 'lib/cpu/usage.rb', line 2

def user
  @user
end