Class: APIGatewayDSL::ResponseHeader

Inherits:
Object
  • Object
show all
Defined in:
lib/api_gateway_dsl/response_header.rb,
lib/api_gateway_dsl/response_header/collection.rb

Defined Under Namespace

Classes: Collection

Constant Summary collapse

VALUE =
{ type: 'string' }.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ ResponseHeader

Returns a new instance of ResponseHeader.



8
9
10
# File 'lib/api_gateway_dsl/response_header.rb', line 8

def initialize(name)
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/api_gateway_dsl/response_header.rb', line 6

def name
  @name
end

Instance Method Details

#as_jsonObject



12
13
14
# File 'lib/api_gateway_dsl/response_header.rb', line 12

def as_json
  VALUE
end