class SellsyV2::Search
Constants
- ROOT_PATH
Public Class Methods
new(query:, **options)
click to toggle source
# File lib/sellsy_v2.rb, line 40 def initialize(query:, **options) search_response = Request.new(path: ROOT_PATH, verb: 'get', options: options.merge({q: query})).call if search_response.success? search_response.data.dig('data').map{OpenStruct.new(_1)} end end