Class: RPCMapper::Association::HasOne

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


230
231
232
# File 'lib/rpc_mapper/association.rb', line 230

def collection?
  false
end

#typeObject



234
235
236
# File 'lib/rpc_mapper/association.rb', line 234

def type
  :has_one
end