Created
April 14, 2015 11:06
-
-
Save jaturken/1615e4172fa364ae44e0 to your computer and use it in GitHub Desktop.
user
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_info | |
if storage == 'file' | |
get_info_from_file | |
elsif storage == 'mysql' | |
get_info_from_mysql | |
elsif storage == 'api' | |
get_storage_from_api | |
else | |
raise RuntimeError, 'Unknown storage' | |
end | |
end | |
private | |
def get_info_from_file | |
123 | |
end | |
def get_info_from_mysql | |
234 | |
end | |
def get_info_from_api | |
345 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment