careerbuilder / ruby-cb-api

Ruby wrapper around the CareerBuilder.com APIs
Apache License 2.0
14 stars 18 forks source link

Configure headers #264

Closed David-Sharpe closed 7 years ago

David-Sharpe commented 7 years ago

This change will allow implementers to pass headers into the instantiation. Please see the following example.

class TestClass < Base
  def TestClass.headers
    { accept: 'application/json' }
  end

  def TestClass.get
    cb_client(headers: headers)
    ...
  end
end
JMolinaro commented 7 years ago

Yup, looks good to me too. Merging.