Class: RPCMapper::Association::HasMany

Inherits:
Has
  • Object
show all
Defined in:
lib/rpc_mapper/association.rb

Instance Attribute Summary

Attributes inherited from Base

#id, #options, #source_klass

Instance Method Summary collapse

Methods inherited from Has

#foreign_key, #polymorphic?, #scope

Methods inherited from Base

#eager_loadable?, #foreign_key, #initialize, #polymorphic?, #primary_key, #scope, #target_klass

Constructor Details

This class inherits a constructor from RPCMapper::Association::Base

Instance Method Details

#collection?Boolean

Returns:

  • (Boolean)


138
139
140
# File 'lib/rpc_mapper/association.rb', line 138

def collection?
  true
end

#typeObject



142
143
144
# File 'lib/rpc_mapper/association.rb', line 142

def type
  :has_many
end