Class: SampleModels::AttributeSequence::InclusionSource
- Inherits:
-
AbstractSource
- Object
- AbstractSource
- SampleModels::AttributeSequence::InclusionSource
- Defined in:
- lib/sample_models/attribute_sequence.rb
Instance Method Summary collapse
-
#initialize(validation) ⇒ InclusionSource
constructor
A new instance of InclusionSource.
- #value ⇒ Object
Methods inherited from AbstractSource
Constructor Details
#initialize(validation) ⇒ InclusionSource
Returns a new instance of InclusionSource.
61 62 63 64 |
# File 'lib/sample_models/attribute_sequence.rb', line 61 def initialize(validation) super() @validation = validation end |
Instance Method Details
#value ⇒ Object
66 67 68 |
# File 'lib/sample_models/attribute_sequence.rb', line 66 def value @validation.config[:in].first end |