Class: ResponseMate::Exporters::Postman::Collection

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#manifestObject

Returns the value of attribute manifest.



6
7
8
# File 'lib/response_mate/exporters/postman/collection.rb', line 6

def manifest
  @manifest
end

#outObject

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

#exportObject



13
14
15
16
17
# File 'lib/response_mate/exporters/postman/collection.rb', line 13

def export
  build_structure
  build_requests
  out
end