lib/yammer/configurable.rb in yammer-client-0.1.6 vs lib/yammer/configurable.rb in yammer-client-0.1.7

- old
+ new

@@ -5,11 +5,11 @@ ENDPOINT = 'https://www.yammer.com' unless defined? ENDPOINT HTTP_ADAPTER = Yammer::HttpAdapter unless defined? HTTP_CONNECTION attr_accessor :client_id, :client_secret, :access_token, :site_url, - :connection_options, :headers, :http_adapter + :connection_options, :default_headers, :http_adapter # Return a hash with the default options # @return [Hash] def self.default_options { @@ -17,10 +17,10 @@ :client_id => ENV['YAMMER_CLIENT_ID'], :client_secret => ENV['YAMMER_CLIENT_SECRET'], :access_token => ENV['YAMMER_ACCESS_TOKEN'], :http_adapter => HTTP_ADAPTER, :connection_options => { :max_redirects => 5, :verify_ssl => true }, - :headers => { + :default_headers => { 'Accept' => 'application/json', 'User-Agent' => "Yammer Ruby Gem #{Yammer::Version}" } } end