Class: OasCore::Spec::Reference
- Inherits:
-
Object
- Object
- OasCore::Spec::Reference
- Includes:
- Specable
- Defined in:
- lib/oas_core/spec/reference.rb
Instance Attribute Summary collapse
-
#ref ⇒ Object
readonly
Returns the value of attribute ref.
Instance Method Summary collapse
-
#initialize(ref) ⇒ Reference
constructor
A new instance of Reference.
- #to_spec ⇒ Object
Methods included from Specable
Constructor Details
#initialize(ref) ⇒ Reference
Returns a new instance of Reference.
9 10 11 |
# File 'lib/oas_core/spec/reference.rb', line 9 def initialize(ref) @ref = ref end |
Instance Attribute Details
#ref ⇒ Object (readonly)
Returns the value of attribute ref.
7 8 9 |
# File 'lib/oas_core/spec/reference.rb', line 7 def ref @ref end |
Instance Method Details
#to_spec ⇒ Object
13 14 15 |
# File 'lib/oas_core/spec/reference.rb', line 13 def to_spec { '$ref' => @ref } end |