Class: Spikard::ServerInfo
- Inherits:
-
Object
- Object
- Spikard::ServerInfo
- Defined in:
- lib/spikard/config.rb
Overview
Server information for OpenAPI documentation.
Multiple servers can be specified for different environments.
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url:, description: nil) ⇒ ServerInfo
constructor
A new instance of ServerInfo.
Constructor Details
#initialize(url:, description: nil) ⇒ ServerInfo
Returns a new instance of ServerInfo.
190 191 192 193 |
# File 'lib/spikard/config.rb', line 190 def initialize(url:, description: nil) @url = url @description = description end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
186 187 188 |
# File 'lib/spikard/config.rb', line 186 def description @description end |
#url ⇒ Object
Returns the value of attribute url.
186 187 188 |
# File 'lib/spikard/config.rb', line 186 def url @url end |