Add the listing model. Rename @json -> @hash for consistency

This commit is contained in:
Dan Milne
2019-10-21 16:46:16 +11:00
parent 924fd11ebb
commit f1f2b6bec2
2 changed files with 2 additions and 4 deletions

View File

@@ -2,6 +2,7 @@ require 'paapi/version'
require 'paapi/client'
require 'paapi/item'
require 'paapi/listing'
require 'paapi/response'
module Paapi

View File

@@ -17,10 +17,7 @@ module Paapi
end
def result_count
@json.dig('SearchResult', 'TotalResultCount')
end
@hash.dig('SearchResult', 'TotalResultCount')
end
end
end