Class: PA::Client::Account

Inherits:
Object
  • Object
show all
Defined in:
lib/client/account.rb

Class Method Summary collapse

Class Method Details

.create_device(description) ⇒ Object



2
3
4
5
6
# File 'lib/client/account.rb', line 2

def self.create_device(description)
  description = PA::Client::Tools.uri_escape(description)
  result = PA::Client::Tools.get_json("http://api.parkingauction.com/device/create?description=" + description)
  PA::DOM::Device.adapt_json(result);
end