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.
214 215 216 217 |
# File 'lib/spikard/config.rb', line 214 def initialize(url:, description: nil) @url = url @description = description end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
210 211 212 |
# File 'lib/spikard/config.rb', line 210 def description @description end |
#url ⇒ Object
Returns the value of attribute url.
210 211 212 |
# File 'lib/spikard/config.rb', line 210 def url @url end |