Class: SlackBot::ArgsParser

Inherits:
Object
  • Object
show all
Defined in:
lib/slack_bot/args.rb

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ ArgsParser

Returns a new instance of ArgsParser.



7
8
9
# File 'lib/slack_bot/args.rb', line 7

def initialize(args)
  @args = args
end

Instance Method Details

#callObject



11
12
13
# File 'lib/slack_bot/args.rb', line 11

def call
  Rack::Utils.parse_query(@args)
end