Class: Xberg::CacheStats

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCacheStats

Returns a new instance of CacheStats.

Parameters:

  • total_files: (Integer)
  • total_size_mb: (Float)
  • available_space_mb: (Float)
  • oldest_file_age_days: (Float)
  • newest_file_age_days: (Float)


19
# File 'sig/types.rbs', line 19

def initialize: (total_files: Integer, total_size_mb: Float, available_space_mb: Float, oldest_file_age_days: Float, newest_file_age_days: Float) -> void

Instance Attribute Details

#available_space_mbFloat (readonly)

Returns the value of attribute available_space_mb.

Returns:

  • (Float)


15
16
17
# File 'sig/types.rbs', line 15

def available_space_mb
  @available_space_mb
end

#newest_file_age_daysFloat (readonly)

Returns the value of attribute newest_file_age_days.

Returns:

  • (Float)


17
18
19
# File 'sig/types.rbs', line 17

def newest_file_age_days
  @newest_file_age_days
end

#oldest_file_age_daysFloat (readonly)

Returns the value of attribute oldest_file_age_days.

Returns:

  • (Float)


16
17
18
# File 'sig/types.rbs', line 16

def oldest_file_age_days
  @oldest_file_age_days
end

#total_filesInteger (readonly)

Returns the value of attribute total_files.

Returns:

  • (Integer)


13
14
15
# File 'sig/types.rbs', line 13

def total_files
  @total_files
end

#total_size_mbFloat (readonly)

Returns the value of attribute total_size_mb.

Returns:

  • (Float)


14
15
16
# File 'sig/types.rbs', line 14

def total_size_mb
  @total_size_mb
end