lib/zold/score.rb
# Default strength for the entire system, in production mode.
Default strength for the entire system, in production mode.
Default strength for the entire system in production mode .
def next
      raise 'This score is not valid' unless valid?
      idx = 0
      loop do
        suffix = idx.to_s(16)
        score = Score.new(
          @time, @host, @port, @invoice, @suffixes + [suffix],
          strength: @strength
        )
        return score if score.valid?
        return Score.new(Time.now, @host, @port, @invoice, [], strength: @strength) if score.expired?
        idx += 1
      end
    end
def next raise 'This score is not valid' unless valid? idx = 0 loop do suffix = idx . to_s ( 16 ) score = Score . new ( @time , @host , @port , @invoice , @suffixes + [ suffix ] , strength : @strength ) return score if score . valid? return Score . new ( Time . now , @host , @port , @invoice , [ ] , strength : @strength ) if score . expired? idx += 1 end end
Default strength for the entire system, in production mode.
Default strength for the entire system in production mode .