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.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url:, description:) ⇒ Server
constructor
A new instance of Server.
- #oas_fields ⇒ Object
Methods included from Specable
Constructor Details
#initialize(url:, description:) ⇒ Server
Returns a new instance of Server.
9 10 11 12 |
# File 'lib/oas_core/spec/server.rb', line 9 def initialize(url:, description:) @url = url @description = description 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 |
#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
14 15 16 |
# File 'lib/oas_core/spec/server.rb', line 14 def oas_fields i[url description] end |