Class: OasRails::Spec::Reference
- Inherits:
-
Object
- Object
- OasRails::Spec::Reference
- Includes:
- Specable
- Defined in:
- lib/oas_rails/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.
7 8 9 |
# File 'lib/oas_rails/spec/reference.rb', line 7 def initialize(ref) @ref = ref end |
Instance Attribute Details
#ref ⇒ Object (readonly)
Returns the value of attribute ref.
5 6 7 |
# File 'lib/oas_rails/spec/reference.rb', line 5 def ref @ref end |
Instance Method Details
#to_spec ⇒ Object
11 12 13 |
# File 'lib/oas_rails/spec/reference.rb', line 11 def to_spec { '$ref' => @ref } end |