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 module Paapi
class Item class Item
attr_accessor :raw attr_accessor :json
def initialize(data) def initialize(data)
@raw = data @json = data
end end
def asin def asin
@@ -102,7 +102,7 @@ module Paapi
end end
def get(keys) def get(keys)
@raw.dig(*keys) @json.dig(*keys)
end end
def self.to_items(data) def self.to_items(data)