Class: ExcADG::Payload::Example::Echo
- Inherits:
-
Object
- Object
- ExcADG::Payload::Example::Echo
- 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
Instance Method Summary collapse
Methods included from ExcADG::Payload
Instance Method Details
#get ⇒ Object
14 15 16 |
# File 'lib/excadg/payload/example.rb', line 14 def get -> { @args } end |
#sanitize(args) ⇒ Object
18 19 20 |
# File 'lib/excadg/payload/example.rb', line 18 def sanitize args args.nil? ? :ping : args end |