Class: Wechat::Menu
- Inherits:
-
DataObject
- Object
- DataObject
- Wechat::Menu
- Defined in:
- lib/wechat/data_objects/menu.rb
Overview
Methods for the Custom Menu API
Class Method Summary collapse
- .create(menu) ⇒ Object
-
.delete ⇒ Hash
Result data.
- .query ⇒ Object
Methods inherited from DataObject
get, parameterize_params, post, #request
Class Method Details
.create(menu) ⇒ Object
29 30 31 |
# File 'lib/wechat/data_objects/menu.rb', line 29 def create() post("menu/create", JSON.generate()) end |
.delete ⇒ Hash
Returns result data.
42 43 44 |
# File 'lib/wechat/data_objects/menu.rb', line 42 def delete get("menu/delete", {}) end |
.query ⇒ Object
16 17 18 |
# File 'lib/wechat/data_objects/menu.rb', line 16 def query get("menu/get", {}) end |