Class: OasCore::Spec::Server
- Inherits:
-
Object
- Object
- OasCore::Spec::Server
- Includes:
- Specable
- Defined in:
- lib/oas_core/spec/server.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url:, description:, name: nil) ⇒ Server
constructor
A new instance of Server.
- #oas_fields ⇒ Object
Methods included from Specable
Constructor Details
#initialize(url:, description:, name: nil) ⇒ Server
Returns a new instance of Server.
9 10 11 12 13 |
# File 'lib/oas_core/spec/server.rb', line 9 def initialize(url:, description:, name: nil) @url = url @description = description @name = name end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
7 8 9 |
# File 'lib/oas_core/spec/server.rb', line 7 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/oas_core/spec/server.rb', line 7 def name @name end |
#url ⇒ Object
Returns the value of attribute url.
7 8 9 |
# File 'lib/oas_core/spec/server.rb', line 7 def url @url end |
Instance Method Details
#oas_fields ⇒ Object
15 16 17 |
# File 'lib/oas_core/spec/server.rb', line 15 def oas_fields %i[url description name] end |