initial commit.
[reserve_usernames.git] / app / models / reserved_username.rb
1 require 'active_resource'
2
3 class ReservedUsername < ActiveResource::Base
4   self.include_root_in_json = false
5
6   self.site = "%s://%s:%s@%s:%s" % [
7     ReserveUsernames::CONFIG['api_proto'],
8     ReserveUsernames::CONFIG['api_username'],
9     ReserveUsernames::CONFIG['api_password'],
10     ReserveUsernames::CONFIG['api_host'],
11     ReserveUsernames::CONFIG['api_port']
12   ]
13   self.element_name = ReserveUsernames::CONFIG['api_path']
14
15 end