lib/board/client.rb in board-client-0.99.0 vs lib/board/client.rb in board-client-0.99.1
- old
+ new
@@ -32,12 +32,13 @@
class << self
attr_accessor :default_endpoint
end
self.default_endpoint = 'https://board.recruitmilitary.com/api/v1'
- def initialize(api_key, endpoint = Client.default_endpoint)
+ def initialize(api_key, options = {})
@api_key = api_key
- @endpoint = endpoint
+ @endpoint = options[:endpoint] || Client.default_endpoint
+ @ssl = options[:ssl] || {}
end
autoload :API, 'board/client/api'
autoload :Users, 'board/client/users'
autoload :Candidates, 'board/client/candidates'