Class: Fictium::Postman::V2Exporter::FolderFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/fictium/exporters/postman/v2_exporter/folder_formatter.rb

Instance Method Summary collapse

Instance Method Details

#format(item_formatter, resource) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/fictium/exporters/postman/v2_exporter/folder_formatter.rb', line 5

def format(item_formatter, resource)
  { name: resource.name }.tap do |result|
    result[:description] = format_description(resource)
    result[:item] = item_formatter.from_resource(resource)
    .format(resource, result)
  end
end