Sha256: 2a84b2ef2a0c1170c028db48786c313460f2500a2c3d20b7f23409cca48064d0

Contents?: true

Size: 353 Bytes

Versions: 2

Compression:

Stored size: 353 Bytes

Contents

# frozen_string_literal: true

module MailerLite
  module Clients
    # MailerLite Segments
    module Segments
      # Get list of segments
      #
      # @see https://developers.mailerlite.com/v2/reference#segments-1
      #
      # @return [Array] Response from API.
      def segments
        connection.get('segments')
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mailerlite-1.7.0 lib/mailerlite/clients/segments.rb
mailerlite-1.6.1 lib/mailerlite/clients/segments.rb