Skip to content

Commit

Permalink
Merge pull request #754 from appwrite/fix-imports-ruby
Browse files Browse the repository at this point in the history
Fixes require for generated reference examples.
  • Loading branch information
abnegate authored Jan 17, 2024
2 parents 041f158 + babd2ce commit 9ed91ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/ruby/docs/example.md.twig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require '{{ spec.title }}'
require '{{ spec.title | lower }}'

include {{ spec.title | caseUcfirst }}

Expand All @@ -14,4 +14,4 @@ client = Client.new

response = {{ service.name | caseSnake }}.{{ method.name | caseSnake }}({% for parameter in method.parameters.all %}{% if parameter.required %}{% if not loop.first %}, {% endif %}{{parameter.name|caseSnake}}: {% if parameter.type == 'file' %}{{ parameter | paramExample }}{% else %}{{ parameter | paramExample }}{% endif %}{% endif %}{% endfor %})

puts response.inspect
puts response.inspect

0 comments on commit 9ed91ce

Please sign in to comment.