Class: Increase::Resources::ProofOfAuthorizationRequests
- Inherits:
-
Object
- Object
- Increase::Resources::ProofOfAuthorizationRequests
- Defined in:
- lib/increase/resources/proof_of_authorization_requests.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ ProofOfAuthorizationRequests
constructor
A new instance of ProofOfAuthorizationRequests.
-
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::ProofOfAuthorizationRequest>
List Proof of Authorization Requests.
-
#retrieve(proof_of_authorization_request_id, opts = {}) ⇒ Increase::Models::ProofOfAuthorizationRequest
Retrieve a Proof of Authorization Request.
Constructor Details
#initialize(client:) ⇒ ProofOfAuthorizationRequests
Returns a new instance of ProofOfAuthorizationRequests.
6 7 8 |
# File 'lib/increase/resources/proof_of_authorization_requests.rb', line 6 def initialize(client:) @client = client end |
Instance Method Details
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::ProofOfAuthorizationRequest>
List Proof of Authorization Requests
35 36 37 38 39 40 41 42 43 |
# File 'lib/increase/resources/proof_of_authorization_requests.rb', line 35 def list(params = {}, opts = {}) req = {} req[:method] = :get req[:path] = "/proof_of_authorization_requests" req[:query] = params req[:page] = Increase::Page req[:model] = Increase::Models::ProofOfAuthorizationRequest @client.request(req, opts) end |
#retrieve(proof_of_authorization_request_id, opts = {}) ⇒ Increase::Models::ProofOfAuthorizationRequest
Retrieve a Proof of Authorization Request
16 17 18 19 20 21 22 |
# File 'lib/increase/resources/proof_of_authorization_requests.rb', line 16 def retrieve(, opts = {}) req = {} req[:method] = :get req[:path] = "/proof_of_authorization_requests/#{}" req[:model] = Increase::Models::ProofOfAuthorizationRequest @client.request(req, opts) end |