Sha256: ff5150f24b13733626fbfd2d02e23373a5ae752475085ff445efee9004bff55c
Contents?: true
Size: 649 Bytes
Versions: 2
Compression:
Stored size: 649 Bytes
Contents
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 if tags.any? post_body['add_tags'] = tags end 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
action_network_rest-0.6.0 | lib/action_network_rest/signatures.rb |
action_network_rest-0.5.0 | lib/action_network_rest/signatures.rb |