Sha256: 5b1096ce9eda138969e5dbbe967cbc0719ec974e47b8f4e45b97e7f104bfedfa
Contents?: true
Size: 465 Bytes
Versions: 2
Compression:
Stored size: 465 Bytes
Contents
module AgraApi class Signature < Base attr_accessor :petition_id def base_path "petitions/#{petition_id}/signatures" end def find_by_email(email_address) begin response = client.get_request("#{normalized_base_path}lookup", email: email_address) response.body rescue Vertebrae::ResponseError => e if e.status_code == 404 nil else raise end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
agra_api-0.3.5 | lib/agra_api/signature.rb |
agra_api-0.3.4 | lib/agra_api/signature.rb |