We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 520c664 + 3825c23 commit e6d9de7Copy full SHA for e6d9de7
lib/cortex/snippets/webpage.rb
@@ -74,11 +74,15 @@ def accordion_group_widget_data
74
def accordion_group_widget_data_for(section_name)
75
accordion_group_widget_data&.[](section_name) || []
76
end
77
-
+
78
def charts_widget_data
79
JSON.parse(@webpage[:charts_widget_json] || 'null', quirks_mode: true)
80
81
82
+ def buy_box_widget_data
83
+ JSON.parse(@webpage[:buy_box_widget_json] || 'null', quirks_mode: true)
84
+ end
85
86
def charts_widget_data_for(section_name)
87
charts_widget_data&.[](section_name) || {}
88
0 commit comments