class Datarobot::AiApi::Deployment
Attributes
datarobotKey[R]
deployment_id[R]
target[R]
url[R]
Public Class Methods
new(options={})
click to toggle source
Takes a response body from the API. Will set all deployment attributes from the response body
@param [Hash] options A parsed response body
# File lib/datarobot/ai_api/deployment.rb, line 10 def initialize(options={}) options = options.collect{|k,v| [k.to_s, v]}.to_h @datarobotKey ||= options.dig("datarobot-key") @deploymentId ||= options.dig("deploymentId") @url ||= options.dig("url") @target ||= options.dig("target") end