Class: RPCMapper::Association::HasMany

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

Direct Known Subclasses

HasManyThrough

Instance Attribute Summary

Attributes inherited from Base

#id, #options, #source_klass

Instance Method Summary collapse

Methods inherited from Has

#foreign_key, #polymorphic?, #polymorphic_type, #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)


217
218
219
# File 'lib/rpc_mapper/association.rb', line 217

def collection?
  true
end

#typeObject



221
222
223
# File 'lib/rpc_mapper/association.rb', line 221

def type
  :has_many
end