Module: BacklogKit::Client::Space
- Included in:
- BacklogKit::Client
- Defined in:
- lib/backlog_kit/client/space.rb
Overview
Methods for the Space API
Instance Method Summary collapse
-
#download_space_icon ⇒ BacklogKit::Response
Download a space logo image.
-
#get_space ⇒ BacklogKit::Response
Get a space.
-
#get_space_activities(params = {}) ⇒ BacklogKit::Response
Get list of space activities.
-
#get_space_disk_usage ⇒ BacklogKit::Response
Get a space disk usage.
-
#get_space_notification ⇒ BacklogKit::Response
Get a space notification.
-
#update_space_notification(content) ⇒ BacklogKit::Response
Update a space notification.
-
#upload_attachment(file_path) ⇒ BacklogKit::Response
Upload attachment file for issue or wiki.
Instance Method Details
#download_space_icon ⇒ BacklogKit::Response
Download a space logo image
23 24 25 |
# File 'lib/backlog_kit/client/space.rb', line 23 def download_space_icon get('space/image') end |
#get_space ⇒ BacklogKit::Response
Get a space
8 9 10 |
# File 'lib/backlog_kit/client/space.rb', line 8 def get_space get('space') end |
#get_space_activities(params = {}) ⇒ BacklogKit::Response
Get list of space activities
16 17 18 |
# File 'lib/backlog_kit/client/space.rb', line 16 def get_space_activities(params = {}) get('space/activities', params) end |
#get_space_disk_usage ⇒ BacklogKit::Response
Get a space disk usage
45 46 47 |
# File 'lib/backlog_kit/client/space.rb', line 45 def get_space_disk_usage get('space/diskUsage') end |
#get_space_notification ⇒ BacklogKit::Response
Get a space notification
30 31 32 |
# File 'lib/backlog_kit/client/space.rb', line 30 def get_space_notification get('space/notification') end |
#update_space_notification(content) ⇒ BacklogKit::Response
Update a space notification
38 39 40 |
# File 'lib/backlog_kit/client/space.rb', line 38 def update_space_notification(content) put('space/notification', content: content) end |
#upload_attachment(file_path) ⇒ BacklogKit::Response
Upload attachment file for issue or wiki
53 54 55 56 |
# File 'lib/backlog_kit/client/space.rb', line 53 def (file_path) payload = { file: Faraday::UploadIO.new(file_path, 'application/octet-stream') } post('space/attachment', payload) end |