class Rustic::Configs::Check

Attributes

check_unused[R]
read_data_subset[R]
with_cache[R]

Public Class Methods

new() click to toggle source
# File lib/rustic/configs/check.rb, line 8
def initialize
  @check_unused = false
  @read_data_subset = nil
  @with_cache = false
end

Public Instance Methods

check_unused!(= @check_unused = true) click to toggle source
# File lib/rustic/configs/check.rb, line 14
def check_unused! = @check_unused = true
def with_cache! = @with_cache = true

def subset(percent)
  raise ArgumentError, "percent must be > 0 and <= 100. Given: #{percent}" if percent <= 0 || percent > 100

  @read_data_subset = percent
end
subset(percent) click to toggle source
# File lib/rustic/configs/check.rb, line 17
def subset(percent)
  raise ArgumentError, "percent must be > 0 and <= 100. Given: #{percent}" if percent <= 0 || percent > 100

  @read_data_subset = percent
end
with_cache!(= @with_cache = true) click to toggle source
# File lib/rustic/configs/check.rb, line 15
  def with_cache! = @with_cache = true

  def subset(percent)
    raise ArgumentError, "percent must be > 0 and <= 100. Given: #{percent}" if percent <= 0 || percent > 100

    @read_data_subset = percent
  end
end