class Castle::Commands::Filter
Generates the payload for the filter request
Public Class Methods
build(options = {})
click to toggle source
@param options [Hash] @return [Castle::Command]
# File lib/castle/commands/filter.rb, line 10 def build(options = {}) context = Castle::Context::Sanitize.call(options[:context]) Castle::Command.new( 'filter', options.merge(context: context, sent_at: Castle::Utils::GetTimestamp.call), :post ) end