Class: Heroics::BodyParameter
- Inherits:
-
Object
- Object
- Heroics::BodyParameter
- Defined in:
- lib/heroics/client_generator.rb
Overview
A representation of a body parameter.
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize ⇒ BodyParameter
constructor
A new instance of BodyParameter.
Constructor Details
#initialize ⇒ BodyParameter
Returns a new instance of BodyParameter.
101 102 103 104 |
# File 'lib/heroics/client_generator.rb', line 101 def initialize @name = 'body' @description = 'the object to pass as the request payload' end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
99 100 101 |
# File 'lib/heroics/client_generator.rb', line 99 def description @description end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
99 100 101 |
# File 'lib/heroics/client_generator.rb', line 99 def name @name end |