Module: GlobalRegistry::Bindings::Options::ClassMethods

Defined in:
lib/global_registry_bindings/options.rb

Instance Method Summary collapse

Instance Method Details

#global_registry_entityObject



35
36
37
# File 'lib/global_registry_bindings/options.rb', line 35

def global_registry_entity
  _global_registry_bindings_class_options
end

#global_registry_relationship(type) ⇒ Object



39
40
41
42
# File 'lib/global_registry_bindings/options.rb', line 39

def global_registry_relationship(type)
  _global_registry_bindings_class_relationships[type] ||=
    GlobalRegistry::Bindings::Options::RelationshipClassOptions.new(type, self)
end

#global_registry_relationship_typesObject



44
45
46
# File 'lib/global_registry_bindings/options.rb', line 44

def global_registry_relationship_types
  _global_registry_bindings_options[:relationships].keys
end