Class: SampleModels::AttributeSequence::InclusionSource

Inherits:
AbstractSource
  • Object
show all
Defined in:
lib/sample_models/attribute_sequence.rb

Instance Method Summary collapse

Methods inherited from AbstractSource

#next

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

#valueObject



66
67
68
# File 'lib/sample_models/attribute_sequence.rb', line 66

def value
  @validation.config[:in].first
end