Sha256: ee49dfb4cbb7a534895d1460ca3ddc5e26dcc5e140a3209d595b0906e4f8337a
Contents?: true
Size: 664 Bytes
Versions: 4
Compression:
Stored size: 664 Bytes
Contents
# frozen_string_literal: true module ActionNetworkRest class Signatures < Base attr_accessor :petition_id def base_path "petitions/#{url_escape(petition_id)}/signatures/" end def create(signature_data, tags: []) post_body = signature_data post_body['add_tags'] = tags if tags.any? response = client.post_request(base_path, post_body) object_from_response(response) end def update(id, signature_data) response = client.put_request("#{base_path}#{url_escape(id)}", signature_data) object_from_response(response) end private def osdi_key 'osdi:signatures' end end end
Version data entries
4 entries across 4 versions & 1 rubygems