Class: Teamlab::Portal

Inherits:
Object
  • Object
show all
Defined in:
lib/teamlab/modules/portals.rb

Instance Method Summary collapse

Constructor Details

#initialize(config = nil) ⇒ Portal

Returns a new instance of Portal.



5
6
7
# File 'lib/teamlab/modules/portals.rb', line 5

def initialize(config = nil)
  @request = Teamlab::Request.new(config, 'portal')
end

Instance Method Details

#delete_portalObject

Deletes the current portal immediately WARNING: Do not test this method in specs in this project



19
20
21
# File 'lib/teamlab/modules/portals.rb', line 19

def delete_portal
  @request.delete(%w[deleteportalimmediately])
end

#invite_user_urlObject



9
10
11
# File 'lib/teamlab/modules/portals.rb', line 9

def invite_user_url
  @request.get(%w[users invite user])
end

#invite_visitor_urlObject



13
14
15
# File 'lib/teamlab/modules/portals.rb', line 13

def invite_visitor_url
  @request.get(%w[users invite visitor])
end