class Passfort::Endpoint::Checks

Public Class Methods

new(client) click to toggle source
# File lib/passfort/endpoint/checks.rb, line 6
def initialize(client)
  @client = client
end

Public Instance Methods

create(profile_id:, check_type:) click to toggle source
# File lib/passfort/endpoint/checks.rb, line 10
def create(profile_id:, check_type:)
  response = @client.post(
    "/profiles/#{profile_id}/checks",
    body: { check_type: check_type },
  )
  Passfort::Resource::Check.new(response)
end