Class: Castle::Commands::Track
- Inherits:
-
Object
- Object
- Castle::Commands::Track
- Defined in:
- lib/castle/commands/track.rb
Class Method Summary collapse
Class Method Details
.build(options = {}) ⇒ Castle::Command
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/castle/commands/track.rb', line 9 def build( = {}) Castle::Validators::Present.call(, %i[event]) context = Castle::Context::Sanitize.call([:context]) Castle::Command.new( 'track', .merge(context: context, sent_at: Castle::Utils::GetTimestamp.call), :post ) end |