From 0439072b520f2da36ee107caa0a1d25e6b85d31d Mon Sep 17 00:00:00 2001 From: Dan Milne Date: Wed, 25 Sep 2019 15:52:21 +1000 Subject: [PATCH] Rename the attribute holding the raw json to 'json'. --- lib/paapi/item.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/paapi/item.rb b/lib/paapi/item.rb index e17cef4..59abfc3 100644 --- a/lib/paapi/item.rb +++ b/lib/paapi/item.rb @@ -2,9 +2,9 @@ require 'nameable' module Paapi class Item - attr_accessor :raw + attr_accessor :json def initialize(data) - @raw = data + @json = data end def asin @@ -102,7 +102,7 @@ module Paapi end def get(keys) - @raw.dig(*keys) + @json.dig(*keys) end def self.to_items(data)