Class: Wechat::Menu

Inherits:
DataObject show all
Defined in:
lib/wechat/data_objects/menu.rb

Overview

Methods for the Custom Menu API

Class Method Summary collapse

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(menu)
  post("menu/create", JSON.generate(menu))
end

.deleteHash

Returns result data.

Examples:

Wechat::Menu.delete

Returns:

  • (Hash)

    result data



42
43
44
# File 'lib/wechat/data_objects/menu.rb', line 42

def delete 
  get("menu/delete", {})
end

.queryObject



16
17
18
# File 'lib/wechat/data_objects/menu.rb', line 16

def query
  get("menu/get", {})
end