Class: Ribose::Member
- Includes:
- Actions::All, Actions::Delete
- Defined in:
- lib/ribose/member.rb
Class Method Summary collapse
-
.all(space_id, options = {}) ⇒ Array<Sawyer::Resource>
List A Space Members.
-
.delete(space_id, member_id, options = {}) ⇒ Object
Delete a space member.
Methods included from Actions::Delete
Methods included from Actions::Base
Methods included from Actions::All
Methods inherited from Base
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`
15 16 17 |
# File 'lib/ribose/member.rb', line 15 def self.all(space_id, = {}) new(space_id: space_id, **).all end |
.delete(space_id, member_id, options = {}) ⇒ Object
Delete a space member
25 26 27 |
# File 'lib/ribose/member.rb', line 25 def self.delete(space_id, member_id, = {}) new(space_id: space_id, resource_id: member_id, **).delete end |