Class: BacklogApiClient::Client::Space

Inherits:
Object
  • Object
show all
Defined in:
lib/backlog-api-client/space.rb

Constant Summary collapse

RESOURCE_NAME =
'space'

Instance Method Summary collapse

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 attachment(file)
  @client.file_upload("#{RESOURCE_NAME}/attachment", file)
end

#disk_usageObject



30
31
32
# File 'lib/backlog-api-client/space.rb', line 30

def disk_usage
  @client.get("#{RESOURCE_NAME}/diskUsage")
end

#imageObject



18
19
20
# File 'lib/backlog-api-client/space.rb', line 18

def image
  @client.get("#{RESOURCE_NAME}/image")
end

#informationObject



10
11
12
# File 'lib/backlog-api-client/space.rb', line 10

def information
  @client.get(RESOURCE_NAME)
end

#notificationObject



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