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