Sha256: 8596f9ef0b0d9d97c430da8456e707407e7a00edfcd70830ffa2ef52c76cd722

Contents?: true

Size: 297 Bytes

Versions: 4

Compression:

Stored size: 297 Bytes

Contents

# frozen_string_literal: true

module ActiveCampaign
  class User < Model # :nodoc:
    class << self
      def find_by_email(email)
        get "#{endpoint}/email/#{email}"
      end

      def find_by_username(username)
        get "#{endpoint}/username/#{username}"
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ractive_campaign-0.1.6 lib/active_campaign/models/user.rb
ractive_campaign-0.1.5 lib/active_campaign/models/user.rb
ractive_campaign-0.1.4 lib/active_campaign/models/user.rb
ractive_campaign-0.1.3 lib/active_campaign/models/user.rb