Class: Fictium::Postman::V2Exporter::ItemFormatter
- Inherits:
-
Object
- Object
- Fictium::Postman::V2Exporter::ItemFormatter
- Defined in:
- lib/fictium/exporters/postman/v2_exporter/item_formatter.rb
Instance Method Summary collapse
Instance Method Details
#format(document) ⇒ Object
5 6 7 8 9 |
# 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) ⇒ Object
11 12 13 14 15 |
# 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 |