Sha256: 03e96d08386a6a1a8d3ccfa09dfc91786e69059884995c0442c664eda680cf54
Contents?: true
Size: 554 Bytes
Versions: 1
Compression:
Stored size: 554 Bytes
Contents
module PAS class Resource < ActiveResource::Base self.site = PAS.config[:domain_name] class << self def connection(refresh = false) if defined?(@connection) || superclass == Object @connection = PAS::Connection.new(site, format) if refresh || @connection.nil? @connection.user = user if user @connection.password = password if password @connection.timeout = timeout if timeout @connection else superclass.connection end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pas-0.0.2 | lib/pas/resource.rb |