Class: ForemanNetbox::API

Inherits:
Object
  • Object
show all
Defined in:
app/lib/foreman_netbox/api.rb

Class Method Summary collapse

Class Method Details

.clientObject



5
6
7
8
9
10
# File 'app/lib/foreman_netbox/api.rb', line 5

def self.client
  NetboxClientRuby.configure do |config|
    config.netbox.api_base_url = "#{Setting['netbox_url']}/api"
    config.netbox.auth.token = Setting['netbox_api_token']
  end
end