Module: Cucumber::Http::Payload
- Defined in:
- lib/cucumber/http/world_extensions/payload.rb
Instance Method Summary collapse
Instance Method Details
#clear_payload ⇒ Object
12 13 14 |
# File 'lib/cucumber/http/world_extensions/payload.rb', line 12 def clear_payload payload.clear end |
#payload ⇒ Object
4 5 6 |
# File 'lib/cucumber/http/world_extensions/payload.rb', line 4 def payload @payload ||= '' end |
#set_payload(data) ⇒ Object
8 9 10 |
# File 'lib/cucumber/http/world_extensions/payload.rb', line 8 def set_payload(data) payload.replace(data) end |