class Metasploit::Model::Association::Reflection
Reflection of the call to {Metasploit::Model::Association::ClassMethods#association}.
Attributes
class_name[RW]
@!attribute [rw] #class_name
The name {#klass}. The name of {#klass} is given instead of {#klass} directly when initializing this reflection to prevent circular references with autoloading or ActiveSupport::Dependencies loading. @return [String] Fully-qualified name of class in this association
model[RW]
@!attribute [rw] model
The model on which this association was declared. The equivalent for ActiveRecord association reflections would be #active_record. @return [Class]
name[RW]
@!attribute [rw] name
The name of this association. @return [String]
Public Instance Methods
klass()
click to toggle source
Class with name {#class_name}.
@return [] @raise [NameError] if {#class_name} cannot be constantized
# File app/models/metasploit/model/association/reflection.rb, line 43 def klass class_name.constantize end