Class: ReleaseFeature::Repository::HashRepository

Inherits:
Object
  • Object
show all
Defined in:
lib/release_feature/repository/hash_repository.rb

Instance Method Summary collapse

Constructor Details

#initialize(hash:) ⇒ HashRepository

Returns a new instance of HashRepository.

Parameters:

  • hash (Hash)


7
8
9
# File 'lib/release_feature/repository/hash_repository.rb', line 7

def initialize(hash:)
  @hash = hash
end

Instance Method Details

#featuresReleaseFeature::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