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
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 |