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