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