Class: Saruman::Model

Inherits:
Object
  • Object
show all
Includes:
BuilderInstanceBase, Virtus
Defined in:
lib/saruman.rb

Instance Method Summary collapse

Methods included from BuilderInstanceBase

#initialize, #method_missing

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Saruman::BuilderInstanceBase

Instance Method Details

#collection_model_klass_nameObject



452
453
454
# File 'lib/saruman.rb', line 452

def collection_model_klass_name
  "#{combined_namespace}_Model_Mysql4_#{name}_Collection"
end

#klass_nameObject



444
445
446
# File 'lib/saruman.rb', line 444

def klass_name
  "#{combined_namespace}_Model_#{name}"
end

#resource_model_klass_nameObject



448
449
450
# File 'lib/saruman.rb', line 448

def resource_model_klass_name
  "#{combined_namespace}_Model_Mysql4_#{name}"
end