Class: APIGatewayDSL::ResponseHeader
- Inherits:
-
Object
- Object
- APIGatewayDSL::ResponseHeader
- 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
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #as_json ⇒ Object
-
#initialize(name) ⇒ ResponseHeader
constructor
A new instance of ResponseHeader.
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
#name ⇒ Object (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_json ⇒ Object
12 13 14 |
# File 'lib/api_gateway_dsl/response_header.rb', line 12 def as_json VALUE end |