Class: Edoxen::Body

Inherits:
Lutaml::Model::Serializable
  • Object
show all
Defined in:
lib/edoxen/body.rb

Overview

A committee, subcommittee, working group, or other organised body that owns meetings and decisions. Carries a short code (e.g. "ISO/TC 154", "CIML") and a localised full name.

Three-tier entity resolution (same pattern as Contact and Venue): ref set → resolve from global BodyRegister by URN. local_ref set → resolve from document-scoped Meeting#bodies. Both nil → inline data.

Instance Method Summary collapse

Instance Method Details

#local_lookup_keyObject

Key used to resolve a local_ref against a document-scoped collection (e.g. Meeting#bodies). Bodies have no urn — they are keyed by code (same semantics as BodyRegister#find_by_urn).



29
30
31
# File 'lib/edoxen/body.rb', line 29

def local_lookup_key
  code
end

#reference?Boolean

Returns:

  • (Boolean)


21
22
23
24
# File 'lib/edoxen/body.rb', line 21

def reference?
  (!ref.nil? && !ref.to_s.empty?) ||
    (!local_ref.nil? && !local_ref.to_s.empty?)
end