Class: Kodo::Algorithms::Base
- Inherits:
-
Object
- Object
- Kodo::Algorithms::Base
- Defined in:
- lib/kodo/algorithms/base.rb
Constant Summary collapse
- DEFAULT_SEED_LIBRARY =
SecureRandom
Instance Attribute Summary collapse
-
#count ⇒ Object
Returns the value of attribute count.
-
#max_length ⇒ Object
Returns the value of attribute max_length.
-
#name ⇒ Object
Returns the value of attribute name.
-
#seed ⇒ Object
Returns the value of attribute seed.
Instance Method Summary collapse
-
#initialize(count, max_length) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(count, max_length) ⇒ Base
Returns a new instance of Base.
8 9 10 11 |
# File 'lib/kodo/algorithms/base.rb', line 8 def initialize(count, max_length) self.count = count self.max_length = max_length end |
Instance Attribute Details
#count ⇒ Object
Returns the value of attribute count.
4 5 6 |
# File 'lib/kodo/algorithms/base.rb', line 4 def count @count end |
#max_length ⇒ Object
Returns the value of attribute max_length.
4 5 6 |
# File 'lib/kodo/algorithms/base.rb', line 4 def max_length @max_length end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/kodo/algorithms/base.rb', line 4 def name @name end |
#seed ⇒ Object
Returns the value of attribute seed.
4 5 6 |
# File 'lib/kodo/algorithms/base.rb', line 4 def seed @seed end |