Skip to content

Commit

Permalink
Implementation rather than select class
Browse files Browse the repository at this point in the history
  • Loading branch information
sbellware committed May 22, 2019
1 parent 8292164 commit d9232ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/set_attributes/data_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d9232ee

Please sign in to comment.