lib/tickethub.rb in tickethub-0.0.1 vs lib/tickethub.rb in tickethub-0.0.2
- old
+ new
@@ -1,9 +1,13 @@
module Tickethub
+ def self.endpoint=(path)
+ @path = path
+ end
+
def self.endpoint
- Endpoint.new 'https://api.tickethub.io/',
- format: :json, headers: { 'Accept-Version' => 'v1', 'Accept' => 'application/json' }
+ Endpoint.new @path || 'https://api.tickethub.io', format: :json,
+ headers: { 'Accept-Version' => 'v1', 'Accept' => 'application/json' }
end
require_relative 'tickethub/helpers'
require_relative 'tickethub/connection'
\ No newline at end of file