summaryrefslogtreecommitdiff
path: root/app/models/reserved_username.rb
blob: 899b319bbc65e6fc3b28155a0a89239a882d010a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'active_resource'

class ReservedUsername < ActiveResource::Base
  self.include_root_in_json = false

  self.site = "%s://%s:%s@%s:%s" % [
    ReserveUsernames::CONFIG['api_proto'],
    ReserveUsernames::CONFIG['api_username'],
    ReserveUsernames::CONFIG['api_password'],
    ReserveUsernames::CONFIG['api_host'],
    ReserveUsernames::CONFIG['api_port']
  ]
  self.element_name = ReserveUsernames::CONFIG['api_path']

end