class Fictium::Postman::V2Exporter::ItemFormatter

Public Instance Methods

format(document) click to toggle source
# File lib/fictium/exporters/postman/v2_exporter/item_formatter.rb, line 5
def format(document)
  document.resources.map do |resource|
    folder_formatter.format(self, resource)
  end
end
from_resource(resource) click to toggle source
# File lib/fictium/exporters/postman/v2_exporter/item_formatter.rb, line 11
def from_resource(resource)
  resource.actions.map do |action|
    action_formatter.format(action)
  end
end

Private Instance Methods

action_formatter() click to toggle source
# File lib/fictium/exporters/postman/v2_exporter/item_formatter.rb, line 23
def action_formatter
  @action_formatter ||= ActionFormatter.new
end
folder_formatter() click to toggle source
# File lib/fictium/exporters/postman/v2_exporter/item_formatter.rb, line 19
def folder_formatter
  @folder_formatter ||= FolderFormatter.new
end