Class: Swagger::Data::Reference
- Defined in:
- lib/ruby-swagger/data/reference.rb
Overview
Instance Attribute Summary collapse
-
#ref ⇒ Object
Returns the value of attribute ref.
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Object
attr_swagger, #bulk_set, #swagger_attributes, #to_json, #to_swagger, #to_yaml
Instance Attribute Details
#ref ⇒ Object
Returns the value of attribute ref.
20 21 22 |
# File 'lib/ruby-swagger/data/reference.rb', line 20 def ref @ref end |
Class Method Details
Instance Method Details
#as_swagger ⇒ Object
22 23 24 |
# File 'lib/ruby-swagger/data/reference.rb', line 22 def as_swagger @ref.nil? ? {} : { '$ref' => @ref } end |