Class: Cure::Strategy::SplitStrategyParams

Inherits:
BaseStrategyParams show all
Defined in:
lib/cure/strategy/split_strategy.rb

Instance Attribute Summary collapse

Attributes inherited from BaseStrategyParams

#force_replace, #options, #replace_partial

Instance Method Summary collapse

Methods inherited from BaseStrategyParams

#validate_params

Methods included from Validators

common_validators, instance_variables_hash, register_validator, validate, #validates

Methods included from Validators::Helpers

#valid?

Constructor Details

#initialize(options = nil) ⇒ SplitStrategyParams

Returns a new instance of SplitStrategyParams.



49
50
51
52
53
54
55
# File 'lib/cure/strategy/split_strategy.rb', line 49

def initialize(options=nil)
  @token = options[:token]
  @index = options[:index]
  # valid?

  super(options)
end

Instance Attribute Details

#indexObject (readonly)

Returns the value of attribute index.



44
45
46
# File 'lib/cure/strategy/split_strategy.rb', line 44

def index
  @index
end

#tokenObject (readonly)

Returns the value of attribute token.



44
45
46
# File 'lib/cure/strategy/split_strategy.rb', line 44

def token
  @token
end