Sha256: 0493d844ec5897d2683b98e2dd1b1353acc401096eb9e93fc96a13a9cc0dbef6
Contents?: true
Size: 637 Bytes
Versions: 23
Compression:
Stored size: 637 Bytes
Contents
class ProconBypassMan::BypassMode TYPE_NORMAL = :normal TYPE_AGGRESSIVE = :aggressive TYPES = [TYPE_NORMAL, TYPE_AGGRESSIVE] DEFAULT_GADGET_TO_PROCON_INTERVAL = 0.5 attr_accessor :mode, :gadget_to_procon_interval def self.default_value new( mode: TYPE_NORMAL, gadget_to_procon_interval: DEFAULT_GADGET_TO_PROCON_INTERVAL, ) end def initialize(mode: , gadget_to_procon_interval: ) @mode = mode.to_sym @gadget_to_procon_interval = gadget_to_procon_interval end def to_s if mode == TYPE_NORMAL "#{mode}(#{gadget_to_procon_interval})" else mode.to_s end end end
Version data entries
23 entries across 23 versions & 1 rubygems