class Rundeck::API

@private

Public Class Methods

new(options = {}) click to toggle source

Creates a new API. @raise [Error:MissingCredentials]

# File lib/rundeck/api.rb, line 9
def initialize(options = {})
  options = Rundeck.options.merge(options)
  Configuration::VALID_OPTIONS_KEYS.each do |key|
    send("#{key}=", options[key]) if options.key?(key)
  end
  set_request_defaults @endpoint, @api_token
end