Sha256: 40b47df71ddce68e1c627e276d8b421c6a82b3d0053810bf9bc343aab42da717

Contents?: true

Size: 522 Bytes

Versions: 1

Compression:

Stored size: 522 Bytes

Contents

# frozen_string_literal: true

require 'sms77/resource'

# This module exposes the methods for communicating with the API endpoint /sms.
module Sms77::Resources
  class Sms < Sms77::Resource
    @endpoint = Sms77::Endpoint::SMS
    @http_methods = {
      :retrieve => :post,
    }

    # Send SMS
    # read more: https://www.sms77.io/en/docs/gateway/http-api/sms-dispatch/
    # @param params [Hash]
    # @return [Integer,String,Hash]
    def retrieve(params)
      request(params)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sms77-0.5.0 lib/sms77/resources/sms.rb