Sha256: b56f31735cd223be3fd554a0d862d875228b33ae2d6c88ec9686eb88b150c0ff

Contents?: true

Size: 306 Bytes

Versions: 3

Compression:

Stored size: 306 Bytes

Contents

module SmstoolsApi
  class Messages
    attr_reader :client

    def initialize(client)
      @client = client
    end

    def create(message:, to:, sender:, date: nil, reference: nil, test: false, subid: nil)
      @client.post('message/send', to: to, message: message, sender: sender)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
smstools_api-0.1.7 lib/smstools_api/messages.rb
smstools_api-0.1.4 lib/smstools_api/messages.rb
smstools_api-0.1.3 lib/smstools_api/messages.rb