Skip to content

Instantly share code, notes, and snippets.

@thatandyrose
Last active August 29, 2015 13:59
Show Gist options
  • Save thatandyrose/10733754 to your computer and use it in GitHub Desktop.
Save thatandyrose/10733754 to your computer and use it in GitHub Desktop.
{
"tree" => {
"id" => "26",
"name" => "My Awesome Tree",
"variable_ids" => ["ValueDriver-1"],
"variables" => [
{
"id" => "ValueDriver-1",
"name" => "My Value Driver",
"type" => "ValueDriver",
"variable_ids" => ["ValueDriver-2", "Operand-1", "Input-1"],
"variables" => [
{
"id" => 'ValueDriver-2',
"type" => "ValueDriver",
"name" => "Production Value Driver",
"variable_ids" => ['Input-2'],
"variables" => [
{ "id" => 'Input-2', "type" => "Input", "name" => 'Production Costs', "value" => 10 }
]
},
{ "id" => 'Operand-1', "type" => 'Operand', "name" => 'Operand', "value" => "+" },
{
"id" => 'Input-1',
"type" => "Input",
"name" => 'Development Costs',
"baseline" => 4,
"variation" => {
"scenario_id" => 1,
"value" => 2,
"percentage_diff" => -50
}
}
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment