Module: RemoteEntity::EntityRecord

Defined in:
lib/remote_entity/entity_record.rb,
lib/remote_entity/entity_record_associations.rb

Defined Under Namespace

Modules: Assocations

Instance Method Summary collapse

Instance Method Details

#remote_entity_idObject



4
5
6
7
8
9
10
# File 'lib/remote_entity/entity_record.rb', line 4

def remote_entity_id
  if id
    return "#{RemoteEntity.service}-#{self.class.name.underscore.gsub("/", "_")}-#{id}"
  else
    return nil
  end
end