Class: SelectPath
- Inherits:
-
Object
- Object
- SelectPath
- Defined in:
- lib/qiita_org/select_path.rb
Instance Method Summary collapse
-
#initialize ⇒ SelectPath
constructor
A new instance of SelectPath.
- #select_path(mode, teams_url) ⇒ Object
Constructor Details
#initialize ⇒ SelectPath
Returns a new instance of SelectPath.
2 3 |
# File 'lib/qiita_org/select_path.rb', line 2 def initialize() end |
Instance Method Details
#select_path(mode, teams_url) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/qiita_org/select_path.rb', line 5 def select_path(mode, teams_url) case mode when "teams" qiita = teams_url path = "api/v2/items?page=1&per_page=100" else qiita = "https://qiita.com/" path = "api/v2/authenticated_user/items?page=1&per_page=100" end return qiita, path end |