lib/ruby-hackernews/services/configuration_service.rb in ruby-hackernews-1.2.1 vs lib/ruby-hackernews/services/configuration_service.rb in ruby-hackernews-1.3.0
- old
+ new
@@ -1,32 +1,35 @@
+module RubyHackernews
-class ConfigurationService
+ class ConfigurationService
- def self.base_url=(url)
- @base_url = url
- end
+ def self.base_url=(url)
+ @base_url = url
+ end
- def self.base_url
- return @base_url || "http://news.ycombinator.com/"
- end
+ def self.base_url
+ return @base_url || "http://news.ycombinator.com/"
+ end
- def self.new_url
- return File.join(self.base_url, "newest")
- end
+ def self.new_url
+ return File.join(self.base_url, "newest")
+ end
- def self.ask_url
- return File.join(self.base_url, "ask")
- end
+ def self.ask_url
+ return File.join(self.base_url, "ask")
+ end
- def self.jobs_url
- return File.join(self.base_url, "jobs")
- end
+ def self.jobs_url
+ return File.join(self.base_url, "jobs")
+ end
- def self.comments_url
- return File.join(self.base_url, "newcomments")
- end
+ def self.comments_url
+ return File.join(self.base_url, "newcomments")
+ end
- def self.submit_url
- return File.join(self.base_url, "submit")
+ def self.submit_url
+ return File.join(self.base_url, "submit")
+ end
+
end
-end
\ No newline at end of file
+end