Class: ResponseMate::Exporters::Postman::Environment

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

Instance Method Summary collapse

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

#environmentObject

Returns the value of attribute environment


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

def environment
  @environment
end

#outObject

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

#exportObject

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