Sha256: 585e101a8b6c295f9298bd74ec51e4380d5401dcc727c092ee6804bcb7501612

Contents?: true

Size: 605 Bytes

Versions: 11

Compression:

Stored size: 605 Bytes

Contents

# frozen_string_literal: true

module Mailersend
  # SMS Activity endpoint from MailerSend API.
  class SMSActivity
    attr_accessor :client,
                  :page,
                  :limit

    def initialize(client = Mailersend::Client.new)
      @client = client
      @page = page
      @limit = limit
    end

    def list(page: nil, limit: nil)
      hash = {
        'page' => page,
        'limit' => limit
      }

      client.http.get(URI::HTTPS.build(host: API_BASE_HOST, path: '/v1/sms-activity',
                                       query: URI.encode_www_form(hash)))
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
mailersend-ruby-2.0.1 lib/mailersend/sms_activity/sms_activity.rb
mailersend-ruby-2.0.0 lib/mailersend/sms_activity/sms_activity.rb
mailersend-ruby-1.6.0 lib/mailersend/sms_activity/sms_activity.rb
mailersend-ruby-1.5.2 lib/mailersend/sms_activity/sms_activity.rb
mailersend-ruby-1.5.1 lib/mailersend/sms_activity/sms_activity.rb
mailersend-ruby-1.5.0 lib/mailersend/sms_activity/sms_activity.rb
mailersend-ruby-1.4.0 lib/mailersend/sms_activity/sms_activity.rb
mailersend-ruby-1.3.2 lib/mailersend/sms_activity/sms_activity.rb
mailersend-ruby-1.3.1 lib/mailersend/sms_activity/sms_activity.rb
mailersend-ruby-1.3.0 lib/mailersend/sms_activity/sms_activity.rb
mailersend-ruby-1.2.0 lib/mailersend/sms_activity/sms_activity.rb