Class: Fictium::Postman::V2Exporter::MetadataFormatter
- Inherits:
-
Object
- Object
- Fictium::Postman::V2Exporter::MetadataFormatter
- Defined in:
- lib/fictium/exporters/postman/v2_exporter/metadata_formatter.rb
Constant Summary collapse
- FIELDS =
%i[event variable auth].freeze
Instance Method Summary collapse
Instance Method Details
#format(subject, result) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/fictium/exporters/postman/v2_exporter/metadata_formatter.rb', line 7 def format(subject, result) FIELDS.each do |field| value = subject.postman.public_send(field) result[field] = value if value.present? end result end |