Class: BacklogApiClient::Client::Space
- Inherits:
-
Object
- Object
- BacklogApiClient::Client::Space
- Defined in:
- lib/backlog-api-client/space.rb
Constant Summary collapse
- RESOURCE_NAME =
'space'
Instance Method Summary collapse
- #activities(request = {}) ⇒ Object
- #attachment(file) ⇒ Object
- #disk_usage ⇒ Object
- #image ⇒ Object
- #information ⇒ Object
-
#initialize(client) ⇒ Space
constructor
A new instance of Space.
- #notification ⇒ Object
- #update_notification(content) ⇒ Object
Constructor Details
#initialize(client) ⇒ Space
Returns a new instance of Space.
6 7 8 |
# File 'lib/backlog-api-client/space.rb', line 6 def initialize(client) @client = client end |
Instance Method Details
#activities(request = {}) ⇒ Object
14 15 16 |
# File 'lib/backlog-api-client/space.rb', line 14 def activities(request = {}) @client.get("#{RESOURCE_NAME}/activities", request) end |
#attachment(file) ⇒ Object
34 35 36 |
# File 'lib/backlog-api-client/space.rb', line 34 def (file) @client.file_upload("#{RESOURCE_NAME}/attachment", file) end |
#disk_usage ⇒ Object
30 31 32 |
# File 'lib/backlog-api-client/space.rb', line 30 def disk_usage @client.get("#{RESOURCE_NAME}/diskUsage") end |
#image ⇒ Object
18 19 20 |
# File 'lib/backlog-api-client/space.rb', line 18 def image @client.get("#{RESOURCE_NAME}/image") end |
#information ⇒ Object
10 11 12 |
# File 'lib/backlog-api-client/space.rb', line 10 def information @client.get(RESOURCE_NAME) end |
#notification ⇒ Object
22 23 24 |
# File 'lib/backlog-api-client/space.rb', line 22 def notification @client.get("#{RESOURCE_NAME}/notification") end |
#update_notification(content) ⇒ Object
26 27 28 |
# File 'lib/backlog-api-client/space.rb', line 26 def update_notification(content) @client.put("#{RESOURCE_NAME}/notification", content) end |