Module: Relationships::ClassMethods

Defined in:
lib/active_mocker/active_record/relationships.rb

Instance Attribute Summary collapse

Instance Attribute Details

#belongs_toObject (readonly)

Returns the value of attribute belongs_to.



10
11
12
# File 'lib/active_mocker/active_record/relationships.rb', line 10

def belongs_to
  @belongs_to
end

#has_and_belongs_to_manyObject (readonly)

Returns the value of attribute has_and_belongs_to_many.



10
11
12
# File 'lib/active_mocker/active_record/relationships.rb', line 10

def has_and_belongs_to_many
  @has_and_belongs_to_many
end

#has_manyObject (readonly)

Returns the value of attribute has_many.



10
11
12
# File 'lib/active_mocker/active_record/relationships.rb', line 10

def has_many
  @has_many
end

#has_oneObject (readonly)

Returns the value of attribute has_one.



10
11
12
# File 'lib/active_mocker/active_record/relationships.rb', line 10

def has_one
  @has_one
end