Class: Ribose::JoinSpaceRequest
Class Method Summary
collapse
#update
#included
#create
#fetch
#all
Methods inherited from Base
#initialize
#resource_id, #resource_path, #resources
Constructor Details
This class inherits a constructor from Ribose::Base
Class Method Details
.accept(invitation_id, options = {}) ⇒ Object
8
9
10
|
# File 'lib/ribose/join_space_request.rb', line 8
def self.accept(invitation_id, options = {})
new(resource_id: invitation_id, state: 1, **options).update
end
|
.reject(invitation_id, options = {}) ⇒ Object
12
13
14
|
# File 'lib/ribose/join_space_request.rb', line 12
def self.reject(invitation_id, options = {})
new(resource_id: invitation_id, state: 2, **options).update
end
|
.update(invitation_id, attributes) ⇒ Object
16
17
18
|
# File 'lib/ribose/join_space_request.rb', line 16
def self.update(invitation_id, attributes)
new(attributes.merge(resource_id: invitation_id)).update
end
|