Sha256: c0276200a0030f63b8a452bc686aa3fb0cf3dc1417683b17dd7ecd2ffb388031
Contents?: true
Size: 599 Bytes
Versions: 10
Compression:
Stored size: 599 Bytes
Contents
# frozen_string_literal: true module SolidusBolt module Accounts class DetectAccountService < SolidusBolt::BaseService attr_reader :email def initialize(email:) @email = email super end def call detect_account end private def detect_account options = build_options handle_result( HTTParty.get( "#{api_base_url}/#{api_version}/account/exists", options ) ) end def build_options { query: { email: email } } end end end end
Version data entries
10 entries across 10 versions & 1 rubygems