Module: NetboxClientRuby::Communication
- Included in:
- Entities, Entity, Secrets::RSAKeyPair, Secrets::SessionKey
- Defined in:
- lib/netbox_client_ruby/communication.rb
Instance Method Summary collapse
Instance Method Details
#connection ⇒ Object
14 15 16 |
# File 'lib/netbox_client_ruby/communication.rb', line 14 def connection NetboxClientRuby::Connection.new end |
#response(response) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/netbox_client_ruby/communication.rb', line 5 def response(response) return nil if response.status == 304 return {} if response.status == 204 raise_on_http_error response read response end |