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