forked from loafle/openapi-generator-original
better ruby method argument format
This commit is contained in:
parent
a4690d76db
commit
9ba1398831
@ -16,7 +16,7 @@ class {{classname}}
|
|||||||
{{#allParams}}{{^optional}}{{newLine}} # @param {{paramName}} {{description}}
|
{{#allParams}}{{^optional}}{{newLine}} # @param {{paramName}} {{description}}
|
||||||
{{/optional}}{{/allParams}}{{#allParams}}{{#optional}}{{newLine}} # @option opts [{{dataType}}] :{{baseName}} {{description}}
|
{{/optional}}{{/allParams}}{{#allParams}}{{#optional}}{{newLine}} # @option opts [{{dataType}}] :{{baseName}} {{description}}
|
||||||
{{/optional}}{{/allParams}} # @return {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}}{{newLine}}
|
{{/optional}}{{/allParams}} # @return {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}}{{newLine}}
|
||||||
def self.{{nickname}} ({{#allParams}}{{paramName}}{{#defaultValue}} = {{{defaultValue}}}{{/defaultValue}},{{/allParams}} opts={})
|
def self.{{nickname}} ({{#allParams}}{{paramName}}{{#defaultValue}} = {{{defaultValue}}}{{/defaultValue}}, {{/allParams}}opts={})
|
||||||
query_param_keys = [{{#queryParams}}:{{paramName}}{{#hasMore}},{{/hasMore}}{{/queryParams}}]
|
query_param_keys = [{{#queryParams}}:{{paramName}}{{#hasMore}},{{/hasMore}}{{/queryParams}}]
|
||||||
|
|
||||||
{{#requiredParamCount}}
|
{{#requiredParamCount}}
|
||||||
|
@ -261,7 +261,7 @@ class PetApi
|
|||||||
# @param name Updated name of the pet
|
# @param name Updated name of the pet
|
||||||
# @param status Updated status of the pet
|
# @param status Updated status of the pet
|
||||||
# @return void
|
# @return void
|
||||||
def self.updatePetWithForm (pet_id,name,status, opts={})
|
def self.updatePetWithForm (pet_id, name, status, opts={})
|
||||||
query_param_keys = []
|
query_param_keys = []
|
||||||
|
|
||||||
|
|
||||||
@ -307,7 +307,7 @@ class PetApi
|
|||||||
# @param api_key
|
# @param api_key
|
||||||
# @param pet_id Pet id to delete
|
# @param pet_id Pet id to delete
|
||||||
# @return void
|
# @return void
|
||||||
def self.deletePet (api_key,pet_id, opts={})
|
def self.deletePet (api_key, pet_id, opts={})
|
||||||
query_param_keys = []
|
query_param_keys = []
|
||||||
|
|
||||||
|
|
||||||
@ -351,7 +351,7 @@ class PetApi
|
|||||||
# @param additional_metadata Additional data to pass to server
|
# @param additional_metadata Additional data to pass to server
|
||||||
# @param file file to upload
|
# @param file file to upload
|
||||||
# @return void
|
# @return void
|
||||||
def self.uploadFile (pet_id,additional_metadata,file, opts={})
|
def self.uploadFile (pet_id, additional_metadata, file, opts={})
|
||||||
query_param_keys = []
|
query_param_keys = []
|
||||||
|
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ class StoreApi
|
|||||||
# Returns pet inventories by status
|
# Returns pet inventories by status
|
||||||
# Returns a map of status codes to quantities
|
# Returns a map of status codes to quantities
|
||||||
# @return map[string,int]
|
# @return map[string,int]
|
||||||
def self.getInventory ( opts={})
|
def self.getInventory (opts={})
|
||||||
query_param_keys = []
|
query_param_keys = []
|
||||||
|
|
||||||
|
|
||||||
|
@ -194,7 +194,7 @@ class UserApi
|
|||||||
# @param username The user name for login
|
# @param username The user name for login
|
||||||
# @param password The password for login in clear text
|
# @param password The password for login in clear text
|
||||||
# @return string
|
# @return string
|
||||||
def self.loginUser (username,password, opts={})
|
def self.loginUser (username, password, opts={})
|
||||||
query_param_keys = [:username,:password]
|
query_param_keys = [:username,:password]
|
||||||
|
|
||||||
|
|
||||||
@ -235,7 +235,7 @@ class UserApi
|
|||||||
# Logs out current logged in user session
|
# Logs out current logged in user session
|
||||||
#
|
#
|
||||||
# @return void
|
# @return void
|
||||||
def self.logoutUser ( opts={})
|
def self.logoutUser (opts={})
|
||||||
query_param_keys = []
|
query_param_keys = []
|
||||||
|
|
||||||
|
|
||||||
@ -317,7 +317,7 @@ class UserApi
|
|||||||
# @param username name that need to be deleted
|
# @param username name that need to be deleted
|
||||||
# @param body Updated user object
|
# @param body Updated user object
|
||||||
# @return void
|
# @return void
|
||||||
def self.updateUser (username,body, opts={})
|
def self.updateUser (username, body, opts={})
|
||||||
query_param_keys = []
|
query_param_keys = []
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user