Sha256: cb67f6158ad95aee791087cd4a4b287b7cb747c94ccdb37054ed6158ca883aa0
Contents?: true
Size: 616 Bytes
Versions: 2
Compression:
Stored size: 616 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: MAILERSEND_API_BASE_HOST, path: '/v1/sms-activity', query: URI.encode_www_form(hash))) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mailersend-ruby-2.0.3 | lib/mailersend/sms_activity/sms_activity.rb |
mailersend-ruby-2.0.2 | lib/mailersend/sms_activity/sms_activity.rb |