lib/tickethub.rb in tickethub-0.1.4 vs lib/tickethub.rb in tickethub-0.2.0

- old
+ new

@@ -2,12 +2,12 @@ def self.endpoint=(path) @path = path end - def self.endpoint - Endpoint.new @path || 'https://api.tickethub.io', format: :json, - headers: { 'Accept-Version' => 'v1', 'Accept' => 'application/json' } + def self.endpoint(options = {}) + Endpoint.new @path || 'https://api.tickethub.io', options.merge(format: :json, + headers: { 'Accept-Version' => 'v1', 'Accept' => 'application/json' }) end require_relative 'tickethub/helpers' require_relative 'tickethub/connection' \ No newline at end of file