Class: ContactPurpose

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

Instance Method Summary collapse

Instance Method Details

#to_data_hashObject



9
10
11
12
13
14
15
16
17
18
19
20
# File 'app/models/contact_purpose.rb', line 9

def to_data_hash
  to_hash(
      only: [
          :id,
          :description,
          :internal_identifier,
          :created_at,
          :updated_at
      ],
      leaf: leaf?
  )
end