Class: Ribose::Space
Class Method Summary
collapse
#update
#included
#create
#fetch
#all
Methods inherited from Base
#initialize
#resource_id, #resource_key, #resource_path, #resources, #resources_path
Constructor Details
This class inherits a constructor from Ribose::Base
Class Method Details
.create(name:, **attributes) ⇒ Object
10
11
12
|
# File 'lib/ribose/space.rb', line 10
def self.create(name:, **attributes)
new(attributes.merge(name: name)).create
end
|
.delete(space_uuid, confirmation:, **options) ⇒ Object
18
19
20
|
# File 'lib/ribose/space.rb', line 18
def self.delete(space_uuid, confirmation:, **options)
remove(space_uuid, options.merge(password_confirmation: confirmation))
end
|
.remove(space_uuid, options = {}) ⇒ Object
14
15
16
|
# File 'lib/ribose/space.rb', line 14
def self.remove(space_uuid, options = {})
Ribose::Request.post("spaces/#{space_uuid}/freeze", options)
end
|