Module: BacklogKit::Client::Space
- Included in:
- BacklogKit::Client
- Defined in:
- lib/backlog_kit/client/space.rb
Instance Method Summary collapse
- #download_space_icon ⇒ Object
- #get_space ⇒ Object
- #get_space_activities(params = {}) ⇒ Object
- #get_space_disk_usage ⇒ Object
- #get_space_notification ⇒ Object
- #update_space_notification(content) ⇒ Object
- #upload_attachment(file_path) ⇒ Object
Instance Method Details
#download_space_icon ⇒ Object
12 13 14 |
# File 'lib/backlog_kit/client/space.rb', line 12 def download_space_icon get('space/image') end |
#get_space ⇒ Object
4 5 6 |
# File 'lib/backlog_kit/client/space.rb', line 4 def get_space get('space') end |
#get_space_activities(params = {}) ⇒ Object
8 9 10 |
# File 'lib/backlog_kit/client/space.rb', line 8 def get_space_activities(params = {}) get('space/activities', params) end |
#get_space_disk_usage ⇒ Object
24 25 26 |
# File 'lib/backlog_kit/client/space.rb', line 24 def get_space_disk_usage get('space/diskUsage') end |
#get_space_notification ⇒ Object
16 17 18 |
# File 'lib/backlog_kit/client/space.rb', line 16 def get_space_notification get('space/notification') end |
#update_space_notification(content) ⇒ Object
20 21 22 |
# File 'lib/backlog_kit/client/space.rb', line 20 def update_space_notification(content) put('space/notification', content: content) end |
#upload_attachment(file_path) ⇒ Object
28 29 30 31 |
# File 'lib/backlog_kit/client/space.rb', line 28 def (file_path) payload = { file: Faraday::UploadIO.new(file_path, 'application/octet-stream') } post('space/attachment', payload) end |