Class: Heroics::BodyParameter

Inherits:
Object
  • Object
show all
Defined in:
lib/heroics/client_generator.rb

Overview

A representation of a body parameter.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBodyParameter

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

#descriptionObject (readonly)

Returns the value of attribute description.



99
100
101
# File 'lib/heroics/client_generator.rb', line 99

def description
  @description
end

#nameObject (readonly)

Returns the value of attribute name.



99
100
101
# File 'lib/heroics/client_generator.rb', line 99

def name
  @name
end