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


151
152
153
# File 'lib/rpc_mapper/association.rb', line 151

def collection?
  false
end

#typeObject



155
156
157
# File 'lib/rpc_mapper/association.rb', line 155

def type
  :has_one
end