Method: Unit::Resource::CardResource.report_stolen

Defined in:
lib/unit/api_resources/card_resource.rb

.report_stolen(card_id) ⇒ UnitResponse, UnitError

Report a card as a stolen by calling Unit’s API

Parameters:

  • card_id (String)

Returns:



32
33
34
35
# File 'lib/unit/api_resources/card_resource.rb', line 32

def report_stolen(card_id)
  response = HttpHelper.post("#{api_url}/cards/#{card_id}/report-stolen", headers: headers)
  response_handler(response)
end