templates/default/gem/readme.erb in gapic-generator-0.8.0 vs templates/default/gem/readme.erb in gapic-generator-0.9.0
- old
+ new
@@ -14,15 +14,15 @@
## Quick Start
```ruby
require "<%= gem.entrypoint_require %>"
-<%- service = gem.first_non_common_service -%>
-<%- method = service&.methods.first -%>
+<%- service = gem.quick_start_service -%>
+<%- method = service&.quick_start_method -%>
<%- if service && method -%>
client = <%= service.create_client_call %>
-request = my_create_request
+request = <%= method.request_type %>.new # (request fields as keyword arguments...)
response = client.<%= method.name %> request
<%- end -%>
```
## Supported Ruby Versions