Class: Facility

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/facility.rb

Instance Method Summary collapse

Instance Method Details

#to_data_hashObject



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