Class: Wallaby::ClassFinder

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Model
Defined in:
lib/services/wallaby/class_finder.rb

Overview

Base class to find out the class for given #script_name, #model_class, #current_controller_class

Direct Known Subclasses

ControllerFinder, DecoratorFinder

Instance Attribute Summary collapse

Instance Attribute Details

#current_controller_classClass

Returns:

  • (Class)


16
17
18
# File 'lib/services/wallaby/class_finder.rb', line 16

def current_controller_class
  @current_controller_class
end

#model_classClass

Returns:

  • (Class)


13
14
15
# File 'lib/services/wallaby/class_finder.rb', line 13

def model_class
  @model_class
end

#script_nameString

Returns:

  • (String)


10
11
12
# File 'lib/services/wallaby/class_finder.rb', line 10

def script_name
  @script_name
end