Skip to content

Commit d5c0b08

Browse files
author
Wen Yu Ge
committed
should be snake case
1 parent a9ebfef commit d5c0b08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/ruby/docs/example.md.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ client
1010
{% endfor %}
1111
{% endfor %}
1212

13-
{{ service.name | caseSnake }} = {{spec.title | caseUcfirst}}::{{ service.name | caseUcfirst }}.new(client{% if service.globalParams | length %}{% for parameter in service.globalParams %}, {{parameter.name|caseCamel}}:{{ parameter | paramExample }}{% endfor %}{% endif %})
13+
{{ service.name | caseSnake }} = {{spec.title | caseUcfirst}}::{{ service.name | caseUcfirst }}.new(client{% if service.globalParams | length %}{% for parameter in service.globalParams %}, {{parameter.name|caseSnake}}:{{ parameter | paramExample }}{% endfor %}{% endif %})
1414

1515
response = {{ service.name | caseSnake }}.{{ method.name | caseSnake }}({% for parameter in method.parameters.all | filter((param) => not param.isGlobal) %}{% if parameter.required %}{% if not loop.first %}, {% endif %}{{parameter.name|caseSnake}}: {% if parameter | paramExample == "InputFile.new" %}{{spec.title | caseUcfirst}}::{{ parameter | paramExample }}{% else %}{{ parameter | paramExample }}{% endif %}{% endif %}{% endfor %})
1616

0 commit comments

Comments
 (0)