Class: Ugc::Management

Inherits:
Usergrid::Management
  • Object
show all
Defined in:
lib/ugc/management.rb

Instance Method Summary collapse

Constructor Details

#initializeManagement

Returns a new instance of Management.



19
20
21
22
# File 'lib/ugc/management.rb', line 19

def initialize
  super management_url
  auth_token = $settings.access_token
end

Instance Method Details

#login(username, password) ⇒ Object



29
30
31
32
# File 'lib/ugc/management.rb', line 29

def (username, password)
  super username, password
  $settings.access_token = auth_token
end

#management_urlObject



24
25
26
27
# File 'lib/ugc/management.rb', line 24

def management_url
  raise "not configured" unless $settings.base_url
  $settings.base_url
end