Class: Colonization::ValuesGenerator
- Inherits:
-
Object
- Object
- Colonization::ValuesGenerator
- Defined in:
- lib/colonization/values_generator.rb
Instance Attribute Summary collapse
-
#validators ⇒ Object
readonly
Returns the value of attribute validators.
-
#validators_objects ⇒ Object
readonly
Returns the value of attribute validators_objects.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(type, validators, strategy) ⇒ ValuesGenerator
constructor
A new instance of ValuesGenerator.
Constructor Details
#initialize(type, validators, strategy) ⇒ ValuesGenerator
Returns a new instance of ValuesGenerator.
8 9 10 11 12 |
# File 'lib/colonization/values_generator.rb', line 8 def initialize(type, validators, strategy) @config = { validations: {}, type: type } @validators = validators set_custom_validators_objects end |
Instance Attribute Details
#validators ⇒ Object (readonly)
Returns the value of attribute validators.
6 7 8 |
# File 'lib/colonization/values_generator.rb', line 6 def validators @validators end |
#validators_objects ⇒ Object (readonly)
Returns the value of attribute validators_objects.
6 7 8 |
# File 'lib/colonization/values_generator.rb', line 6 def validators_objects @validators_objects end |
Instance Method Details
#call ⇒ Object
14 15 16 |
# File 'lib/colonization/values_generator.rb', line 14 def call generate_faker_value end |