Class: Ribose::Member

Inherits:
Base
  • Object
show all
Includes:
Actions::All, Actions::Delete
Defined in:
lib/ribose/member.rb

Class Method Summary collapse

Methods included from Actions::Delete

#delete

Methods included from Actions::Base

#included

Methods included from Actions::All

#all

Methods inherited from Base

#initialize

Methods included from ResourceHelper

#resource_id, #resource_key, #resource_path, #resources

Constructor Details

This class inherits a constructor from Ribose::Base

Class Method Details

.all(space_id, options = {}) ⇒ Array<Sawyer::Resource>

List A Space Members

This interface retrieves the list of members for any speicfic user spaces and then will return those as ‘Sawyer::Resource`

Parameters:

  • space_id (String)

    The Space Id

  • options (Hash) (defaults to: {})

    Query parameters as a Hash

Returns:

  • (Array<Sawyer::Resource>)


15
16
17
# File 'lib/ribose/member.rb', line 15

def self.all(space_id, options = {})
  new(space_id: space_id, **options).all
end

.delete(space_id, member_id, options = {}) ⇒ Object

Delete a space member

Parameters:

  • space_id (String)

    The Space UUID

  • member_id (String)

    The Member UUID

  • options (Hash) (defaults to: {})

    Query parameters as Hash



25
26
27
# File 'lib/ribose/member.rb', line 25

def self.delete(space_id, member_id, options = {})
  new(space_id: space_id, resource_id: member_id, **options).delete
end