[Ruby] Better handling of operationID starting with a number (#719)

* better handling of operationId starting with numbers in Ruby

* update Rubocop to use Layout
This commit is contained in:
William Cheng
2018-08-02 22:00:50 +08:00
committed by GitHub
parent e0020b41da
commit f0425d77ef
6 changed files with 25 additions and 19 deletions

View File

@@ -4,15 +4,15 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**test_special_tags**](AnotherFakeApi.md#test_special_tags) | **PATCH** /another-fake/dummy | To test special tags
[**call_123_test_special_tags**](AnotherFakeApi.md#call_123_test_special_tags) | **PATCH** /another-fake/dummy | To test special tags
# **test_special_tags**
> Client test_special_tags(client)
# **call_123_test_special_tags**
> Client call_123_test_special_tags(client)
To test special tags
To test special tags
To test special tags and operation ID starting with number
### Example
```ruby
@@ -24,10 +24,10 @@ client = Petstore::Client.new # Client | client model
begin
#To test special tags
result = api_instance.test_special_tags(client)
result = api_instance.call_123_test_special_tags(client)
p result
rescue Petstore::ApiError => e
puts "Exception when calling AnotherFakeApi->test_special_tags: #{e}"
puts "Exception when calling AnotherFakeApi->call_123_test_special_tags: #{e}"
end
```