class LinkedIn::Connection
Used to perform requests against LinkedIn's API
.
Public Class Methods
new(url=nil, options=nil, &block)
click to toggle source
Calls superclass method
# File lib/linked_in/connection.rb, line 5 def initialize(url=nil, options=nil, &block) if url.is_a? Hash options = url url = options[:url] end url = default_url if url.nil? super url, options, &block # We need to use the FlatParamsEncoder so we can pass multiple of # the same param to certain endpoints (like the search API). self.options.params_encoder = ::Faraday::FlatParamsEncoder logger = Logger.new $stderr logger.level = Logger::DEBUG self.response :logger, logger self.response :linkedin_raise_error end