Class: Botfly::SubscriptionRequestResponder

Inherits:
Responder
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/botfly/responder/subscription_request_responder.rb

Instance Attribute Summary

Attributes inherited from Responder

#bot, #callback, #callback_type, #id

Instance Method Summary collapse

Methods inherited from Responder

#callback_with, #initialize, #method_missing

Methods included from CommonResponderMethods

#remove, #tell

Constructor Details

This class inherits a constructor from Botfly::Responder

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Botfly::Responder

Instance Method Details

#acceptObject



4
5
6
# File 'lib/botfly/responder/subscription_request_responder.rb', line 4

def accept
  @bot.roster.accept_subscription(@from)
end

#declineObject



7
8
9
# File 'lib/botfly/responder/subscription_request_responder.rb', line 7

def decline
  @bot.roster.decline_subscription(@from)
end