Method: WeChat::Entity::Base#update_to_we_chat

Defined in:
lib/we_chat/entity/base.rb

#update_to_we_chatObject



36
37
38
39
40
41
42
# File 'lib/we_chat/entity/base.rb', line 36

def update_to_we_chat
  if 
    WeChat::REST::Client.default.send("#{self.class.we_chat_entity_name.to_s}_update".to_sym, self.to_we_chat_data)
  else
    submit_to_we_chat
  end
end