Class: Maestrano::Connector::Rails::SubEntityBase
- Inherits:
-
Entity
- Object
- Entity
- Maestrano::Connector::Rails::SubEntityBase
show all
- Defined in:
- app/models/maestrano/connector/rails/sub_entity_base.rb
Instance Method Summary
collapse
Methods inherited from Entity
#create_entity_to_external, entities_list, #get_external_entities, #get_id_from_external_entity_hash, #get_last_update_date_from_external_entity_hash, #update_entity_to_external
Instance Method Details
#connec_entity_name ⇒ Object
24
25
26
27
28
29
30
|
# File 'app/models/maestrano/connector/rails/sub_entity_base.rb', line 24
def connec_entity_name
if self.external?
raise "Forbidden call"
else
self.entity_name
end
end
|
#entity_name ⇒ Object
8
9
10
|
# File 'app/models/maestrano/connector/rails/sub_entity_base.rb', line 8
def entity_name
raise "Not implemented"
end
|
#external? ⇒ Boolean
4
5
6
|
# File 'app/models/maestrano/connector/rails/sub_entity_base.rb', line 4
def external?
raise "Not implemented"
end
|
#external_entity_name ⇒ Object
16
17
18
19
20
21
22
|
# File 'app/models/maestrano/connector/rails/sub_entity_base.rb', line 16
def external_entity_name
if self.external?
self.entity_name
else
raise "Forbidden call"
end
end
|
#map_to(name, entity, organization) ⇒ Object
12
13
14
|
# File 'app/models/maestrano/connector/rails/sub_entity_base.rb', line 12
def map_to(name, entity, organization)
raise "Not implemented"
end
|