Class: Reference
- Inherits:
-
Object
- Object
- Reference
- Defined in:
- lib/tiki/reference.rb
Instance Attribute Summary collapse
-
#ref ⇒ Object
readonly
Returns the value of attribute ref.
Instance Method Summary collapse
-
#initialize(ref, group = :schema) ⇒ Reference
constructor
A new instance of Reference.
- #to_spec ⇒ Object
Constructor Details
#initialize(ref, group = :schema) ⇒ Reference
Returns a new instance of Reference.
10 11 12 |
# File 'lib/tiki/reference.rb', line 10 def initialize(ref, group = :schema) @ref = create_reference ref, group end |
Instance Attribute Details
#ref ⇒ Object (readonly)
Returns the value of attribute ref.
8 9 10 |
# File 'lib/tiki/reference.rb', line 8 def ref @ref end |
Instance Method Details
#to_spec ⇒ Object
14 15 16 |
# File 'lib/tiki/reference.rb', line 14 def to_spec { :$ref => @ref } end |