Class: Ruboty::Handlers::Callng

Inherits:
Base
  • Object
show all
Defined in:
lib/ruboty/handlers/callng.rb

Defined Under Namespace

Classes: Error

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Callng

Returns a new instance of Callng.



13
14
15
16
17
18
# File 'lib/ruboty/handlers/callng.rb', line 13

def initialize(*args)
  super
  unless defined?(Ruboty::SlackRTM)
    raise Error, "ruboty-slack_rtm is not installed. ruboty-callng supports only ruboty-slack_rtm for now"
  end
end

Instance Method Details

#phone_call(message) ⇒ Object

call is already used in ruboty



21
22
23
# File 'lib/ruboty/handlers/callng.rb', line 21

def phone_call(message)
  Ruboty::Callng::Actions::Call.new(message).call
end

#phone_call_with_message(message) ⇒ Object

call is already used in ruboty



26
27
28
# File 'lib/ruboty/handlers/callng.rb', line 26

def phone_call_with_message(message)
  Ruboty::Callng::Actions::Call.new(message).call_with_message
end