mirror of
https://github.com/dkam/paapi.git
synced 2025-12-27 22:54:52 +00:00
Add the listing model. Rename @json -> @hash for consistency
This commit is contained in:
@@ -2,6 +2,7 @@ require 'paapi/version'
|
|||||||
|
|
||||||
require 'paapi/client'
|
require 'paapi/client'
|
||||||
require 'paapi/item'
|
require 'paapi/item'
|
||||||
|
require 'paapi/listing'
|
||||||
require 'paapi/response'
|
require 'paapi/response'
|
||||||
|
|
||||||
module Paapi
|
module Paapi
|
||||||
|
|||||||
@@ -17,10 +17,7 @@ module Paapi
|
|||||||
end
|
end
|
||||||
|
|
||||||
def result_count
|
def result_count
|
||||||
@json.dig('SearchResult', 'TotalResultCount')
|
@hash.dig('SearchResult', 'TotalResultCount')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
Reference in New Issue
Block a user