class APIGatewayDSL::Parameter::Simple
Public Class Methods
new(name, **options)
click to toggle source
Calls superclass method
APIGatewayDSL::Parameter::new
# File lib/api_gateway_dsl/parameter/simple.rb, line 5 def initialize(name, **options) super @type = options[:type] || 'string' end
Public Instance Methods
as_json()
click to toggle source
Calls superclass method
APIGatewayDSL::Parameter#as_json
# File lib/api_gateway_dsl/parameter/simple.rb, line 11 def as_json super.tap do |result| result[:type] = @type end end