Class: ExcADG::Payload::Example::Sleepy
- Inherits:
-
Object
- Object
- ExcADG::Payload::Example::Sleepy
- Includes:
- ExcADG::Payload
- Defined in:
- lib/excadg/payload/example.rb
Overview
payload that sleeps @args or 1 second(s)
Instance Attribute Summary
Attributes included from ExcADG::Payload
Instance Method Summary collapse
Methods included from ExcADG::Payload
Instance Method Details
#get ⇒ Object
49 50 51 |
# File 'lib/excadg/payload/example.rb', line 49 def get -> { sleep @args } end |
#sanitize(args) ⇒ Object
53 54 55 |
# File 'lib/excadg/payload/example.rb', line 53 def sanitize args args.is_a?(Integer) ? args : 0.1 end |