mirror of
https://github.com/dkam/paapi.git
synced 2025-12-28 07:04:53 +00:00
Rename the attribute holding the raw json to 'json'.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user