Class: MotdForge::SystemStats::Snapshot

Inherits:
Struct
  • Object
show all
Defined in:
lib/motd_forge/system_stats.rb

Instance Attribute Summary collapse

Instance Attribute Details

#disk_usage_percentObject

Returns the value of attribute disk_usage_percent

Returns:

  • (Object)

    the current value of disk_usage_percent



7
8
9
# File 'lib/motd_forge/system_stats.rb', line 7

def disk_usage_percent
  @disk_usage_percent
end

#mem_totalObject

Returns the value of attribute mem_total

Returns:

  • (Object)

    the current value of mem_total



7
8
9
# File 'lib/motd_forge/system_stats.rb', line 7

def mem_total
  @mem_total
end

#mem_usedObject

Returns the value of attribute mem_used

Returns:

  • (Object)

    the current value of mem_used



7
8
9
# File 'lib/motd_forge/system_stats.rb', line 7

def mem_used
  @mem_used
end

#mem_used_percentObject

Returns the value of attribute mem_used_percent

Returns:

  • (Object)

    the current value of mem_used_percent



7
8
9
# File 'lib/motd_forge/system_stats.rb', line 7

def mem_used_percent
  @mem_used_percent
end

#uptimeObject

Returns the value of attribute uptime

Returns:

  • (Object)

    the current value of uptime



7
8
9
# File 'lib/motd_forge/system_stats.rb', line 7

def uptime
  @uptime
end