class Axiom::Attribute::Tuple
Represents a tuple value in a relation tuple
Attributes
header[R]
The header
@return [Header]
@api private
Public Class Methods
new(_name, options)
click to toggle source
@param [#to_sym] _name
the attribute name
@param [Hash] options
the options for the attribute
@option options [Boolean] :required (true)
if true, then the value cannot be nil
@option options [Header] :header
the header for the tuple
@return [undefined]
@api private
Calls superclass method
Axiom::Attribute::new
# File lib/axiom/attribute/tuple.rb, line 31 def initialize(_name, options) super @header = Axiom::Relation::Header.coerce(options.fetch(:header)) end
type()
click to toggle source
The attribute type
@example
type = Axiom::Attribute::Tuple.type # => Axiom::Types::Tuple
@return [Class<Types::Tuple>]
@api public
# File lib/axiom/attribute/tuple.rb, line 44 def self.type Types::Tuple end