Class: Facility
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Facility
- Defined in:
- app/models/facility.rb
Instance Method Summary collapse
Instance Method Details
#to_data_hash ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'app/models/facility.rb', line 8 def to_data_hash to_hash(only: [ :id, :description, :created_at, :updated_at ], postal_address: try(:postal_address).try(:to_data_hash)) end |