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.



4
5
6
7
# File 'lib/ugc/management.rb', line 4

def initialize
  super management_url
  auth_token = $settings.access_token
end

Instance Method Details

#login(username, password) ⇒ Object



14
15
16
17
# File 'lib/ugc/management.rb', line 14

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

#management_urlObject



9
10
11
12
# File 'lib/ugc/management.rb', line 9

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