Module: Qiita::Client::Users
- Included in:
- Qiita::Client
- Defined in:
- lib/qiita/client/users.rb
Instance Method Summary collapse
- #user(url_name = nil) ⇒ Object
- #user_following_tags(url_name, params = {}) ⇒ Object
- #user_following_users(url_name, params = {}) ⇒ Object
- #user_items(url_name = nil, params = {}) ⇒ Object
- #user_stocks(url_name = nil, params = {}) ⇒ Object
Instance Method Details
#user(url_name = nil) ⇒ Object
22 23 24 25 |
# File 'lib/qiita/client/users.rb', line 22 def user(url_name=nil) path = url_name ? "/users/#{url_name}" : '/user' get path end |
#user_following_tags(url_name, params = {}) ⇒ Object
9 10 11 |
# File 'lib/qiita/client/users.rb', line 9 def (url_name, params={}) get "/users/#{url_name}/following_tags", params end |
#user_following_users(url_name, params = {}) ⇒ Object
13 14 15 |
# File 'lib/qiita/client/users.rb', line 13 def user_following_users(url_name, params={}) get "/users/#{url_name}/following_users", params end |
#user_items(url_name = nil, params = {}) ⇒ Object
4 5 6 7 |
# File 'lib/qiita/client/users.rb', line 4 def user_items(url_name=nil, params={}) path = url_name ? "/users/#{url_name}/items" : '/items' get path, params end |
#user_stocks(url_name = nil, params = {}) ⇒ Object
17 18 19 20 |
# File 'lib/qiita/client/users.rb', line 17 def user_stocks(url_name=nil, params={}) path = url_name ? "/users/#{url_name}/stocks" : '/stocks' get path, params end |