diff --git a/lib/set_attributes/data_source.rb b/lib/set_attributes/data_source.rb index c5b2970..cb961ab 100644 --- a/lib/set_attributes/data_source.rb +++ b/lib/set_attributes/data_source.rb @@ -37,11 +37,11 @@ def build(source, include=nil, exclude: nil) end def self.build_data_source(source, include=nil, exclude: nil) - data_source_class = select_class(source) + data_source_class = implementation(source) data_source_class.build(source, include, exclude: exclude) end - def self.select_class(source) + def self.implementation(source) if source.is_a?(::Hash) return DataSource::Hash else