lib/jss/api_object/matchable.rb
def match(term, api: JSS.api )
      raise JSS::InvalidDataError, "Match term may not be empty" if term.to_s.empty?
      rsrc = "#{self::RSRC_BASE}/#{JSS::Matchable::MATCH_RSRC}/#{CGI.escape term.to_s}"
      api.get_rsrc(rsrc)[self::RSRC_LIST_KEY]
    end
### Perform a match, returning an Array of Hashes, one for each item matched
###
### At the moment, it appears the search is an "exact match" search
### regardless of the prefs of the user connected to the API.
###
### @param term[String] the term to match.
###
### @return [Array<Hash>] the item smatched.
###
Perform a match, returning an Array of Hashes, one for each item matched
At the moment, it appears the search is an "exact match" search
regardless of the prefs of the user connected to the API.
Perform a match returning an Array of Hashes one for each item matched At the moment it appears the search is an " exact match " search regardless of the prefs of the user connected to the API .
def match(term, api: JSS.api )
      raise JSS::InvalidDataError, "Match term may not be empty" if term.to_s.empty?
      rsrc = "#{self::RSRC_BASE}/#{JSS::Matchable::MATCH_RSRC}/#{CGI.escape term.to_s}"
      api.get_rsrc(rsrc)[self::RSRC_LIST_KEY]
    end
def match ( term , api : JSS . api ) raise JSS :: InvalidDataError , "Match term may not be empty" if term . to_s . empty? rsrc = "#{self::RSRC_BASE}/#{JSS::Matchable::MATCH_RSRC}/#{CGI.escape term.to_s}" api . get_rsrc ( rsrc ) [ self :: RSRC_LIST_KEY ] end
Perform a match, returning an Array of Hashes, one for each item matched
At the moment, it appears the search is an "exact match" search
regardless of the prefs of the user connected to the API.
Perform a match returning an Array of Hashes one for each item matched At the moment it appears the search is an " exact match " search regardless of the prefs of the user connected to the API .
the item smatched.
the item smatched .
Array<Hash>
term
the term to match.
the term to match .
api