Sha256: e3d86d8f1aedcd85f2234aa7b08ceda61fe9ab9ae2e32795a369fa49a43ba694

Contents?: true

Size: 277 Bytes

Versions: 2

Compression:

Stored size: 277 Bytes

Contents

# frozen_string_literal: true

module ActiveCampaign
  class Tag < Model # :nodoc:
    define_attributes :tagType, :tag, :description, :subscriber_count

    class << self
      def find_by(tag:)
        filter({ tags: { tag: tag } }.to_query).last
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ractive_campaign-0.1.0 lib/active_campaign/models/tag.rb
ractive_campaign-0.0.1 lib/active_campaign/models/tag.rb