Class: QRAPI::Distribution::Headers

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/qrapi/models/distribution/headers.rb

Class Method Summary collapse

Methods inherited from BaseModel

#created_at, #inspect, #updated_at

Class Method Details

.model_nameOpenStruct

Make the model serializeable by ActiveModelSerializer

Returns:

  • (OpenStruct)


13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/qrapi/models/distribution/headers.rb', line 13

def self.model_name
  OpenStruct.new(name: "QRAPI::MailingList",
                 klass: self,
                 singular: "qualtrics_distribution_header",
                 plural: "qualtrics_distribution_headers",
                 element: "distribution_header",
                 human: "distribution_header",
                 collection: "qrapi/distribution_headers",
                 param_key: "qualtrics_distribution_headers",
                 i18n_key: "qrapi/distribution_headers",
                 route_key: "qualtrics_distribution_headers",
                 singular_route_key: "qualtrics_distribution_header")
end