Class: Openapi3Parser::Validators::Reference
- Inherits:
-
Object
- Object
- Openapi3Parser::Validators::Reference
- Defined in:
- lib/openapi3_parser/validators/reference.rb
Instance Method Summary collapse
- #errors ⇒ Object
-
#initialize(given_reference) ⇒ Reference
constructor
A new instance of Reference.
- #valid? ⇒ Boolean
Constructor Details
#initialize(given_reference) ⇒ Reference
Returns a new instance of Reference.
6 7 8 |
# File 'lib/openapi3_parser/validators/reference.rb', line 6 def initialize(given_reference) @given_reference = given_reference end |
Instance Method Details
#errors ⇒ Object
14 15 16 |
# File 'lib/openapi3_parser/validators/reference.rb', line 14 def errors @errors ||= Array(build_errors) end |
#valid? ⇒ Boolean
10 11 12 |
# File 'lib/openapi3_parser/validators/reference.rb', line 10 def valid? errors.empty? end |