Class: ActiveRecordAnalyzer::Attribute::BelongsTo

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

Instance Method Summary collapse

Instance Method Details

#association?Boolean

Returns:

  • (Boolean)


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

def association?
  true
end

#has_many?Boolean

Returns:

  • (Boolean)


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

def 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 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 simple_attribute?
  false
end