Module: BacklogKit::Client::Space

Included in:
BacklogKit::Client
Defined in:
lib/backlog_kit/client/space.rb

Instance Method Summary collapse

Instance Method Details

#download_space_iconObject



12
13
14
# File 'lib/backlog_kit/client/space.rb', line 12

def download_space_icon
  get('space/image')
end

#get_spaceObject



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_usageObject



24
25
26
# File 'lib/backlog_kit/client/space.rb', line 24

def get_space_disk_usage
  get('space/diskUsage')
end

#get_space_notificationObject



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 upload_attachment(file_path)
  payload = { file: Faraday::UploadIO.new(file_path, 'application/octet-stream') }
  post('space/attachment', payload)
end