Module: WeChat

Defined in:
lib/we_chat.rb,
lib/we_chat/sku.rb,
lib/we_chat/menu.rb,
lib/we_chat/error.rb,
lib/we_chat/engine.rb,
lib/we_chat/headers.rb,
lib/we_chat/product.rb,
lib/we_chat/version.rb,
lib/we_chat/category.rb,
lib/we_chat/rest/api.rb,
lib/we_chat/js_ticket.rb,
lib/we_chat/rest/menu.rb,
lib/we_chat/rest/user.rb,
lib/we_chat/rest/media.rb,
lib/we_chat/rest/store.rb,
lib/we_chat/rest/utils.rb,
lib/we_chat/subscriber.rb,
lib/we_chat/entity/base.rb,
lib/we_chat/rest/client.rb,
lib/we_chat/access_token.rb,
lib/we_chat/rest/request.rb,
lib/we_chat/symbolizable.rb,
lib/we_chat/entity/creator.rb,
lib/we_chat/sku_definition.rb,
lib/we_chat/entity/destroyer.rb,
lib/we_chat/entity/retriever.rb,
lib/we_chat/category_property.rb,
lib/we_chat/messaging/message.rb,
lib/we_chat/product_attribute.rb,
lib/we_chat/entity/named_entity.rb,
lib/we_chat/messaging/responder.rb,
lib/we_chat/sku_definition_item.rb,
lib/we_chat/rest/template_message.rb,
lib/we_chat/acts_as_we_chat_entity.rb,
lib/we_chat/category_property_item.rb,
lib/we_chat/entity/identity_entity.rb,
app/helpers/we_chat/application_helper.rb,
lib/we_chat/messaging/message_validator.rb,
app/controllers/we_chat/application_controller.rb

Defined Under Namespace

Modules: ActsAsWeChatEntity, ApplicationHelper, Category, CategoryProperty, CategoryPropertyItem, Entity, Menu, Messaging, Product, ProductAttribute, REST, Sku, SkuDefinition, SkuDefinitionItem, Subscriber, Symbolizable Classes: AccessToken, ApplicationController, Engine, Error, Headers, JsTicket

Constant Summary collapse

VERSION =
"0.5.17"
@@wechat_api_base_url =
'https://api.weixin.qq.com/cgi-bin'
@@wechat_appid =
''
@@wechat_secret =
''
@@wechat_token =
''
@@wechat_access_token_file_path =
'public/system/wechat_access_token'
@@wechat_js_ticket_file_path =
'public/system/wechat_js_ticket'

Class Method Summary collapse

Class Method Details

.setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (WeChat)

    the object that the method was called on



47
48
49
# File 'lib/we_chat.rb', line 47

def self.setup
  yield self
end