Class: SlackBot::ArgsParser
- Inherits:
-
Object
- Object
- SlackBot::ArgsParser
- Defined in:
- lib/slack_bot/args.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(args) ⇒ ArgsParser
constructor
A new instance of ArgsParser.
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
#call ⇒ Object
11 12 13 |
# File 'lib/slack_bot/args.rb', line 11 def call Rack::Utils.parse_query(@args) end |