Class: Apiwork::API::Info::Server
- Inherits:
-
Object
- Object
- Apiwork::API::Info::Server
- Defined in:
- lib/apiwork/api/info/server.rb
Overview
Server definition block.
Used within the ‘server` block in Apiwork::API::Info.
Instance Method Summary collapse
-
#description(value = nil) ⇒ String?
The server description.
-
#initialize ⇒ Server
constructor
A new instance of Server.
-
#url(value = nil) ⇒ String?
The server URL.
Constructor Details
#initialize ⇒ Server
Returns a new instance of Server.
11 12 13 14 |
# File 'lib/apiwork/api/info/server.rb', line 11 def initialize @description = nil @url = nil end |
Instance Method Details
#description(value = nil) ⇒ String?
The server description.
42 43 44 45 46 |
# File 'lib/apiwork/api/info/server.rb', line 42 def description(value = nil) return @description if value.nil? @description = value end |
#url(value = nil) ⇒ String?
The server URL.
26 27 28 29 30 |
# File 'lib/apiwork/api/info/server.rb', line 26 def url(value = nil) return @url if value.nil? @url = value end |