class Opendistro::API
@private
Public Class Methods
new(options = {})
click to toggle source
Creates a new API
. @raise [Error:MissingCredentials]
# File lib/opendistro/api.rb, line 11 def initialize(options = {}) options = Opendistro.options.merge(options) Configuration::VALID_OPTIONS_KEYS.each do |key| send("#{key}=", options[key]) if options[key] end self.class.headers 'User-Agent' => user_agent end