Class: ExcADG::Payload::Example::Echo

Inherits:
Object
  • Object
show all
Includes:
ExcADG::Payload
Defined in:
lib/excadg/payload/example.rb

Overview

minimalistic payload that does nothing but echoes its args or :ping by default

Instance Attribute Summary

Attributes included from ExcADG::Payload

#args

Instance Method Summary collapse

Methods included from ExcADG::Payload

#initialize

Instance Method Details

#getObject



16
17
18
# File 'lib/excadg/payload/example.rb', line 16

def get
  -> { @args }
end

#sanitize(args) ⇒ Object



20
21
22
# File 'lib/excadg/payload/example.rb', line 20

def sanitize args
  args.nil? ? :ping : args
end