Rename the attribute holding the raw json to 'json'.

This commit is contained in:
Dan Milne
2019-09-25 15:52:21 +10:00
parent ed3446f97e
commit 0439072b52

View File

@@ -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)