Class: WAEasyAPI::Message
Instance Attribute Summary
Attributes inherited from Entity
#attributes
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Entity
#initialize, #method_missing, #respond_to_missing?, #to_json, #with_a_bang
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class WAEasyAPI::Entity
Class Method Details
.request ⇒ Object
6
7
8
|
# File 'lib/waeasyapi/message.rb', line 6
def self.request
WAEasyAPI::Request.new('send')
end
|
18
19
20
|
# File 'lib/waeasyapi/message.rb', line 18
def self.sendMedia(data={})
request.post "media" , data
end
|
.sendMessage(data = {}) ⇒ Object
10
11
12
|
# File 'lib/waeasyapi/message.rb', line 10
def self.sendMessage(data={})
request.post "message" , data
end
|
.sendTemplate(data = {}) ⇒ Object
14
15
16
|
# File 'lib/waeasyapi/message.rb', line 14
def self.sendTemplate(data={})
request.post "template" , data
end
|
Instance Method Details
#method ⇒ Object
22
23
24
|
# File 'lib/waeasyapi/message.rb', line 22
def method
method_missing(:method)
end
|