Class: ResponseMate::Exporters::Postman::Collection
- Inherits:
-
Object
- Object
- ResponseMate::Exporters::Postman::Collection
- Defined in:
- lib/response_mate/exporters/postman/collection.rb
Overview
Handles exporting to postman format Example output www.getpostman.com/collections/dbc0521911e45471ff4a
Instance Attribute Summary collapse
-
#manifest ⇒ Object
Returns the value of attribute manifest.
-
#out ⇒ Object
Returns the value of attribute out.
Instance Method Summary collapse
- #export ⇒ Object
-
#initialize(manifest) ⇒ Collection
constructor
A new instance of Collection.
Constructor Details
#initialize(manifest) ⇒ Collection
Returns a new instance of Collection.
8 9 10 11 |
# File 'lib/response_mate/exporters/postman/collection.rb', line 8 def initialize(manifest) @manifest = manifest @out = {} end |
Instance Attribute Details
#manifest ⇒ Object
Returns the value of attribute manifest.
6 7 8 |
# File 'lib/response_mate/exporters/postman/collection.rb', line 6 def manifest @manifest end |
#out ⇒ Object
Returns the value of attribute out.
6 7 8 |
# File 'lib/response_mate/exporters/postman/collection.rb', line 6 def out @out end |
Instance Method Details
#export ⇒ Object
13 14 15 16 17 |
# File 'lib/response_mate/exporters/postman/collection.rb', line 13 def export build_structure build_requests out end |