Class: WeixinPam::PublicAccountReply::KeyEventCallback

Inherits:
Object
  • Object
show all
Defined in:
lib/weixin_pam/public_account_reply.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#callbackObject

Returns the value of attribute callback.



6
7
8
# File 'lib/weixin_pam/public_account_reply.rb', line 6

def callback
  @callback
end

#descriptionObject

Returns the value of attribute description.



6
7
8
# File 'lib/weixin_pam/public_account_reply.rb', line 6

def description
  @description
end

#keyObject

Returns the value of attribute key.



6
7
8
# File 'lib/weixin_pam/public_account_reply.rb', line 6

def key
  @key
end

Instance Method Details

#execute(service) ⇒ Object



7
8
9
# File 'lib/weixin_pam/public_account_reply.rb', line 7

def execute(service)
  callback.call(service)
end