Class: Reference

Inherits:
Object
  • Object
show all
Defined in:
lib/tiki/reference.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#refObject (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_specObject



14
15
16
# File 'lib/tiki/reference.rb', line 14

def to_spec
  { :$ref => @ref }
end