Class: LambdaOpenApi::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/lambda_open_api/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/lambda_open_api/configuration.rb', line 5

def initialize
  @file_name = "open_api/open_api.json"
  @title = "Workflow Settings Api"
  @description = "About this api"
  @version = "1"
  @host = "google.com"
  @schemes = ["https"]
  @consumes = ["application/json"]
  @produces = ["application/json"]
  @file_sets = []
end

Instance Attribute Details

#consumesObject

Returns the value of attribute consumes.



3
4
5
# File 'lib/lambda_open_api/configuration.rb', line 3

def consumes
  @consumes
end

#descriptionObject

Returns the value of attribute description.



3
4
5
# File 'lib/lambda_open_api/configuration.rb', line 3

def description
  @description
end

#file_nameObject

Returns the value of attribute file_name.



3
4
5
# File 'lib/lambda_open_api/configuration.rb', line 3

def file_name
  @file_name
end

#file_setsObject

Returns the value of attribute file_sets.



3
4
5
# File 'lib/lambda_open_api/configuration.rb', line 3

def file_sets
  @file_sets
end

#hostObject

Returns the value of attribute host.



3
4
5
# File 'lib/lambda_open_api/configuration.rb', line 3

def host
  @host
end

#producesObject

Returns the value of attribute produces.



3
4
5
# File 'lib/lambda_open_api/configuration.rb', line 3

def produces
  @produces
end

#schemesObject

Returns the value of attribute schemes.



3
4
5
# File 'lib/lambda_open_api/configuration.rb', line 3

def schemes
  @schemes
end

#titleObject

Returns the value of attribute title.



3
4
5
# File 'lib/lambda_open_api/configuration.rb', line 3

def title
  @title
end

#versionObject

Returns the value of attribute version.



3
4
5
# File 'lib/lambda_open_api/configuration.rb', line 3

def version
  @version
end