Class: OasRails::Spec::Server
- Inherits:
-
Object
- Object
- OasRails::Spec::Server
- Includes:
- Specable
- Defined in:
- lib/oas_rails/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.
7 8 9 10 |
# File 'lib/oas_rails/spec/server.rb', line 7 def initialize(url:, description:) @url = url @description = description end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
5 6 7 |
# File 'lib/oas_rails/spec/server.rb', line 5 def description @description end |
#url ⇒ Object
Returns the value of attribute url.
5 6 7 |
# File 'lib/oas_rails/spec/server.rb', line 5 def url @url end |
Instance Method Details
#oas_fields ⇒ Object
12 13 14 |
# File 'lib/oas_rails/spec/server.rb', line 12 def oas_fields [:url, :description] end |