Class: ReleaseFeature::Repository::ActiveRecordRepository
- Inherits:
-
Object
- Object
- ReleaseFeature::Repository::ActiveRecordRepository
- Defined in:
- lib/release_feature/repository/active_record_repository.rb
Instance Method Summary collapse
- #features ⇒ ReleaseFeature::FeatureCollection
-
#initialize(model:) ⇒ ActiveRecordRepository
constructor
A new instance of ActiveRecordRepository.
Constructor Details
#initialize(model:) ⇒ ActiveRecordRepository
Returns a new instance of ActiveRecordRepository.
7 8 9 |
# File 'lib/release_feature/repository/active_record_repository.rb', line 7 def initialize(model:) @model = model end |
Instance Method Details
#features ⇒ ReleaseFeature::FeatureCollection
12 13 14 15 |
# File 'lib/release_feature/repository/active_record_repository.rb', line 12 def features data = @model.all convert_to_feature_collection(data) end |