Module: ActiveOrient

Defined in:
lib/base_properties.rb,
lib/base.rb,
lib/init.rb,
lib/jdbc.rb,
lib/railtie.rb,
lib/java-api.rb,
lib/rest/rest.rb,
lib/model/model.rb,
lib/active-orient.rb

Overview

require 'active_support/hash_with_indifferent_access'

Defined Under Namespace

Modules: BaseProperties, Init Classes: API, Base, Model, OrientDB, Railtie

Class Method Summary collapse

Class Method Details

.show_classesObject

displays all allocated classes

usage:

puts ActiveOrient::show_classes

67
68
69
70
71
72
73
74
# File 'lib/active-orient.rb', line 67

def self.show_classes

 '-'* 45+"\n"+
 "Database Class  ->  ActiveOrient ClassName\n"+
 '-'* 45+"\n"+
  ActiveOrient.database_classes.map{|x,y| "#{"%15s"% x} ->  #{y.to_s}" }.join("\n") + "\n"+
 '-'* 45 + "\n"
end