Info
Wraps API metadata/info.
Example
ruby
info = api.info
info.title # => "My API"
info.version # => "1.0.0"
info.description # => "API for managing resources"
info.contact&.email # => "support@example.com"
info.license&.name # => "MIT"Modules
Instance Methods
#contact
#contact
The API contact.
Returns
Info::Contact, nil
See also
#description
#description
The API description.
Returns
String, nil
#license
#license
The API license.
Returns
Info::License, nil
See also
#servers
#servers
The API servers.
Returns
Array<Info::Server>
See also
#summary
#summary
The API summary.
Returns
String, nil
#terms_of_service
#terms_of_service
The API terms of service.
Returns
String, nil
#title
#title
The API title.
Returns
String, nil
#to_h
#to_h
Converts the API info to a hash.
Returns
Hash
#version
#version
The API version.
Returns
String, nil