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)


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

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)


115
116
117
# File 'sig/types.rbs', line 115

def available_space_mb
  @available_space_mb
end

#newest_file_age_daysFloat (readonly)

Returns the value of attribute newest_file_age_days.

Returns:

  • (Float)


117
118
119
# File 'sig/types.rbs', line 117

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)


116
117
118
# File 'sig/types.rbs', line 116

def oldest_file_age_days
  @oldest_file_age_days
end

#total_filesInteger (readonly)

Returns the value of attribute total_files.

Returns:

  • (Integer)


113
114
115
# File 'sig/types.rbs', line 113

def total_files
  @total_files
end

#total_size_mbFloat (readonly)

Returns the value of attribute total_size_mb.

Returns:

  • (Float)


114
115
116
# File 'sig/types.rbs', line 114

def total_size_mb
  @total_size_mb
end