Class: Ribose::Space

Inherits:
Base
  • Object
show all
Includes:
Actions::All, Actions::Create, Actions::Fetch, Actions::Update
Defined in:
lib/ribose/space.rb

Class Method Summary collapse

Methods included from Actions::Update

#update

Methods included from Actions::Base

#included

Methods included from Actions::Create

#create

Methods included from Actions::Fetch

#fetch

Methods included from Actions::All

#all

Methods inherited from Base

#initialize

Methods included from ResourceHelper

#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