Slide 30
Slide 30 text
product
#
=>
{
"DescriptiveDetail"
=>
{
"TitleDetail"
=>
{
"TitleElement"
=>
{
"TitleText"
=>
"Atlas
Shrugged"
}}}}
BetterStruct.new(product).descriptive_detail.title_detail.title_element.title_text.value
product["DescriptiveDetail"]
&&
product["DescriptiveDetail"]["TitleDetail"]
&&
product["DescriptiveDetail"]["TitleDetail"]["TitleElement"]
&&
product["DescriptiveDetail"]["TitleDetail"]["TitleElement"]["TitleText"]
product[“DescriptiveDetail”].
try(:[],
“TitleDetail").
try(:[],
“TitleElement").
try(:[],
"TitleText")
ONIX example