Class: Structure
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Structure
- Includes:
- CoreBase
- Defined in:
- app/models/structure.rb
Overview
Instance Method Summary (collapse)
-
- (StructureCenter) center_by_reference_space(reference_space_id)
Returns the structure center.
Instance Method Details
- (StructureCenter) center_by_reference_space(reference_space_id)
Returns the structure center
64 65 66 67 |
# File 'app/models/structure.rb', line 64 def center_by_reference_space(reference_space_id) centers = self.structure_centers.by_reference_space(reference_space_id) centers.size > 0 ? centers[0] : nil end |