class Fictium::Postman::V2Exporter::InfoFormatter
Constants
- POSTMAN_SCHEMA_URL
Public Instance Methods
format(_document)
click to toggle source
# File lib/fictium/exporters/postman/v2_exporter/info_formatter.rb, line 10 def format(_document) base_info.tap do |result| result[:_postman_id] = postman.id if postman.id.present? result[:description] = info.description if info.description.present? result[:schema] = POSTMAN_SCHEMA_URL end end
Private Instance Methods
base_info()
click to toggle source
# File lib/fictium/exporters/postman/v2_exporter/info_formatter.rb, line 20 def base_info { name: info.title, version: info.version } end