Class: Castle::Commands::Filter
- Inherits:
-
Object
- Object
- Castle::Commands::Filter
- Defined in:
- lib/castle/commands/filter.rb
Overview
Generates the payload for the filter request
Class Method Summary collapse
Class Method Details
.build(options = {}) ⇒ Castle::Command
10 11 12 13 14 15 16 17 18 |
# File 'lib/castle/commands/filter.rb', line 10 def build( = {}) context = Castle::Context::Sanitize.call([:context]) Castle::Command.new( 'filter', .merge(context: context, sent_at: Castle::Utils::GetTimestamp.call), :post ) end |