class ROM::Header::Embedded

Embedded attribute is a special attribute type that has a header

This is the base of complex attributes like Hash or Group

@private

Attributes

header[R]

return [Header] header of an attribute

@api private

Public Class Methods

new(*) click to toggle source

@api private

Calls superclass method ROM::Header::Attribute::new
# File lib/rom/header/attribute.rb, line 118
def initialize(*)
  super
  @header = meta.fetch(:header)
end

Public Instance Methods

pop_keys() click to toggle source
# File lib/rom/header/attribute.rb, line 132
def pop_keys
  header.pop_keys
end
tuple_keys() click to toggle source

Return tuple keys from the header

@return [Array<Symbol>]

@api private

# File lib/rom/header/attribute.rb, line 128
def tuple_keys
  header.tuple_keys
end