Method: Frodo::Entity#id
- Defined in:
- lib/frodo/entity.rb
#id ⇒ String
Returns the canonical URL for this entity
215 216 217 218 219 220 221 |
# File 'lib/frodo/entity.rb', line 215 def id @id ||= lambda { entity_set = self.entity_set.andand.name entity_set ||= context.split('#').last.split('/').first "#{entity_set}(#{self[primary_key]})" }.call end |