Sha256: 5a55389c73614ef516ceb0c0fa17ed11bcee41d4b6f17367203829a00e96d2bb

Contents?: true

Size: 467 Bytes

Versions: 1

Compression:

Stored size: 467 Bytes

Contents

require 'waeasyapi/request'
require 'waeasyapi/entity'

module WAEasyAPI
  class Message < Entity
    def self.request
      WAEasyAPI::Request.new('send')
    end
    
    def self.sendMessage(data={})
      request.post "message" , data
    end

    def self.sendTemplate(data={})
      request.post "template" , data
    end

    def self.sendMedia(data={})
      request.post "media" , data
    end

    def method
      method_missing(:method)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
waeasyapi-1.0.0 lib/waeasyapi/message.rb