Class: ActiveRecordAnalyzer::Attribute::HasMany

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record_analyzer/attribute/has_many.rb

Class Method Summary collapse

Class Method Details

.association?Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/active_record_analyzer/attribute/has_many.rb', line 2

def self.association?
  true
end

.has_many?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/active_record_analyzer/attribute/has_many.rb', line 10

def self.has_many?
  true
end

.one_to_many?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/active_record_analyzer/attribute/has_many.rb', line 14

def self.one_to_many?
  false
end

.simple_attribute?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/active_record_analyzer/attribute/has_many.rb', line 6

def self.simple_attribute?
  false
end