Class: ForemanNetbox::API
- Inherits:
-
Object
- Object
- ForemanNetbox::API
- Defined in:
- app/lib/foreman_netbox/api.rb
Class Method Summary collapse
Class Method Details
.client ⇒ Object
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 |