Module: SlackPatternInteraction

Included in:
SlackInteractiveClient::BaseInteraction
Defined in:
lib/slack_interactive_client/concerns/slack_pattern_interaction.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method_name, *arguments, &block) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/slack_interactive_client/concerns/slack_pattern_interaction.rb', line 5

def method_missing(method_name, *arguments, &block)
  if @extracted_values.has_key?(method_name.to_s)
    @extracted_values[method_name.to_s]
  else
    super
  end
end

Instance Method Details

#respond_to_missing?(method_name, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/slack_interactive_client/concerns/slack_pattern_interaction.rb', line 13

def respond_to_missing?(method_name, include_private = false)
  @extracted_values.has_key?(method_name.to_s) || super
end