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