Class: Anchor::Types::Reference

Inherits:
Data
  • Object
show all
Defined in:
lib/anchor/types.rb

Direct Known Subclasses

Resource

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



100
101
102
# File 'lib/anchor/types.rb', line 100

def name
  @name
end

Instance Method Details

#anchor_schema_nameObject



105
# File 'lib/anchor/types.rb', line 105

def anchor_schema_name = name

#|(other) ⇒ Object



107
108
109
# File 'lib/anchor/types.rb', line 107

def |(other)
  Anchor::Types::Union.new([self, other])
end