lib/credly.rb in credly-0.0.6 vs lib/credly.rb in credly-0.0.7
- old
+ new
@@ -43,14 +43,23 @@
def self.version
options[:version]
end
+ def self.base_domain
+ options[:base_domain]
+ end
+
+ def self.base_domain=(domain)
+ options[:domain] = domain
+ end
+
def self.options
if defined? @@options
@@options
else
@@options = { :base_endpoint => 'https://apistaging2.credly.com',
+ :base_domain => 'https://staging.credly.com',
:access_token => nil,
:version => 'v0.2',
:debugging => false,
:user_agent => 'credly_ruby_client' }
end
\ No newline at end of file