module Syoboemon
	module Connector
		URL			= "http://cal.syoboi.jp"
		RSS2_PATH	= "/rss2.php"
		DB_PATH		= "/db.php"
		JSON_PATH	= "/json.php"

		class << self
			def rss2_get(query)
				connection.get(rss2_path, query)
			end

			def db_get(query)
				connection.get(db_path, query)
			end

			def json_get(query)
				connection.get(json_path, query)
			end

			private

			def connection
				connection ||= Faraday::Connection.new(url: url) do |c|
					c.request		:url_encoded
					c.response	:logger
					c.adapter		:net_http
					c.response	:raise_error
				end
			end

			def url
				URL
			end

			def rss2_path
				RSS2_PATH
			end

			def db_path
				DB_PATH
			end

			def json_path
				JSON_PATH
			end
		end
	end
end
module Syoboemon
	class Connector
		URL			= "http://cal.syoboi.jp"
		RSS2_PATH	= "/rss2.php"
		DB_PATH		= "/db.php"
		JSON_PATH	= "/json.php"

		def rss2_get(query)
			connection.get(rss2_path, query)
		end

		def db_get(query)
			connection.get(db_path, query)
		end

		def json_get(query)
			connection.get(json_path, query)
		end

		private

		def connection
			connection ||= Faraday::Connection.new(url: url) do |c|
				c.request		:url_encoded
				c.response	:logger
				c.adapter		:net_http
				c.response	:raise_error
			end
		end

		def url
			URL
		end

		def rss2_path
			RSS2_PATH
		end

		def db_path
			DB_PATH
		end

		def json_path
			JSON_PATH
		end
	end
end
--- 
+++ 
@@ -1,47 +1,49 @@
 module Syoboemon
-	class Connector
+	module Connector
 		URL			= "http://cal.syoboi.jp"
 		RSS2_PATH	= "/rss2.php"
 		DB_PATH		= "/db.php"
 		JSON_PATH	= "/json.php"
 
-		def rss2_get(query)
-			connection.get(rss2_path, query)
-		end
+		class << self
+			def rss2_get(query)
+				connection.get(rss2_path, query)
+			end
 
-		def db_get(query)
-			connection.get(db_path, query)
-		end
+			def db_get(query)
+				connection.get(db_path, query)
+			end
 
-		def json_get(query)
-			connection.get(json_path, query)
-		end
+			def json_get(query)
+				connection.get(json_path, query)
+			end
 
-		private
+			private
 
-		def connection
-			connection ||= Faraday::Connection.new(url: url) do |c|
-				c.request		:url_encoded
-				c.response	:logger
-				c.adapter		:net_http
-				c.response	:raise_error
+			def connection
+				connection ||= Faraday::Connection.new(url: url) do |c|
+					c.request		:url_encoded
+					c.response	:logger
+					c.adapter		:net_http
+					c.response	:raise_error
+				end
 			end
-		end
 
-		def url
-			URL
-		end
+			def url
+				URL
+			end
 
-		def rss2_path
-			RSS2_PATH
-		end
+			def rss2_path
+				RSS2_PATH
+			end
 
-		def db_path
-			DB_PATH
-		end
+			def db_path
+				DB_PATH
+			end
 
-		def json_path
-			JSON_PATH
+			def json_path
+				JSON_PATH
+			end
 		end
 	end
 end
Change to module from class(Syoboemon::Connector)
