Module: Slack::Web::Api::Options

Included in:
Client
Defined in:
lib/slack/web/api/options.rb

Instance Method Summary collapse

Instance Method Details

#encode_options_as_json(options, keys) ⇒ Object



7
8
9
10
11
12
# File 'lib/slack/web/api/options.rb', line 7

def encode_options_as_json(options, keys)
  encoded_options = options.slice(*keys).transform_values do |value|
    encode_json(value)
  end
  options.merge(encoded_options)
end