Module: CPRClient
- Defined in:
- lib/cpr_client.rb,
lib/cpr_client/client.rb,
lib/cpr_client/errors.rb,
lib/cpr_client/record.rb,
lib/cpr_client/version.rb
Defined Under Namespace
Classes: Client, ClientError, LoginError, NewPasswordError, Record
Constant Summary collapse
- ENDPOINT_DEMO =
'https://gctp-demo.cpr.dk/cpr-online-gctp/gctp'- ENDPOINT_PROD =
'https://gctp.cpr.dk/cpr-online-gctp/gctp'- VERSION =
'0.0.8'
Class Method Summary collapse
-
.new(user, pass, demo = false) ⇒ Object
Returns a new Client.
Class Method Details
.new(user, pass, demo = false) ⇒ Object
Returns a new Client.
16 17 18 |
# File 'lib/cpr_client.rb', line 16 def self.new(user, pass, demo = false) Client.new(user, pass, demo ? ENDPOINT_DEMO : ENDPOINT_PROD) end |