Method: ZendeskAPI::Configuration#options
- Defined in:
- lib/zendesk_api/configuration.rb
#options ⇒ Hash
Sets accept and user_agent headers, and url.
67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/zendesk_api/configuration.rb', line 67 def { :headers => { :accept => 'application/json', :accept_encoding => 'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', :user_agent => "ZendeskAPI Ruby #{ZendeskAPI::VERSION}" }, :request => { :open_timeout => 10, :timeout => 60 }, :url => @url }.merge() end |