Method: ZendeskAPI::Configuration#options

Defined in:
lib/zendesk_api/configuration.rb

#optionsHash

Sets accept and user_agent headers, and url.

Returns:

  • (Hash)

    Faraday-formatted hash of options.



67
68
69
70
71
72
73
74
75
76
77
78
79
80
# File 'lib/zendesk_api/configuration.rb', line 67

def options
  {
    :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(client_options)
end