Skip to content

Commit

Permalink
Renamed Object to factory
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinMulhern committed Mar 3, 2016
1 parent 7faadf9 commit 377e6ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/helpers/lessons_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ def url_format(title)
end

def slack_link(course)
SlackLinkAdaptor.new(course).adapt
SlackLinkFactory.new(course).build
end
end
4 changes: 2 additions & 2 deletions app/services/slack_link_adaptor.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
class SlackLinkAdaptor
class SlackLinkFactory

attr_reader :course

def initialize(course)
@course = course
end

def adapt
def build
base_slack_url + url_finder.fetch(@course.title, fallback)
end

Expand Down

0 comments on commit 377e6ee

Please sign in to comment.