Sha256: ef22757e53aff000ed371a5b654faa67d9b591a2f87588e3c80e644f9ed30442

Contents?: true

Size: 722 Bytes

Versions: 7

Compression:

Stored size: 722 Bytes

Contents

module BacklogKit
  class Client
    module Space
      def get_space
        get('space')
      end

      def get_space_activities(params = {})
        get('space/activities', params)
      end

      def download_space_icon
        get('space/image')
      end

      def get_space_notification
        get('space/notification')
      end

      def update_space_notification(content)
        put('space/notification', content: content)
      end

      def get_space_disk_usage
        get('space/diskUsage')
      end

      def upload_attachment(file_path)
        payload = { file: Faraday::UploadIO.new(file_path, 'application/octet-stream') }
        post('space/attachment', payload)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
backlog_kit-0.12.1 lib/backlog_kit/client/space.rb
backlog_kit-0.12.0 lib/backlog_kit/client/space.rb
backlog_kit-0.11.0 lib/backlog_kit/client/space.rb
backlog_kit-0.10.0 lib/backlog_kit/client/space.rb
backlog_kit-0.9.0 lib/backlog_kit/client/space.rb
backlog_kit-0.8.0 lib/backlog_kit/client/space.rb
backlog_kit-0.7.0 lib/backlog_kit/client/space.rb