Class: Fictium::Postman::V2Exporter::BodyFormatter
- Inherits:
-
Object
- Object
- Fictium::Postman::V2Exporter::BodyFormatter
- Defined in:
- lib/fictium/exporters/postman/v2_exporter/body_formatter.rb
Instance Method Summary collapse
Instance Method Details
#format(http_subject, response: false) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/fictium/exporters/postman/v2_exporter/body_formatter.rb', line 5 def format(http_subject, response: false) return if http_subject.blank? body = http_subject[:body] return if body.blank? return body if response { mode: 'raw', raw: body } end |