Class: OasRails::Spec::Server

Inherits:
Object
  • Object
show all
Includes:
Specable
Defined in:
lib/oas_rails/spec/server.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Specable

#as_json, #to_spec

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

#descriptionObject

Returns the value of attribute description.



5
6
7
# File 'lib/oas_rails/spec/server.rb', line 5

def description
  @description
end

#urlObject

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_fieldsObject



12
13
14
# File 'lib/oas_rails/spec/server.rb', line 12

def oas_fields
  [:url, :description]
end