Class: QRAPI::Distribution::Message

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/qrapi/models/distribution/message.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)


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

def self.model_name
  OpenStruct.new(name: "QRAPI::MailingList",
                 klass: self,
                 singular: "qualtrics_distribution_message",
                 plural: "qualtrics_distribution_messages",
                 element: "distribution_message",
                 human: "distribution_message",
                 collection: "qrapi/distribution_messages",
                 param_key: "qualtrics_distribution_messages",
                 i18n_key: "qrapi/distribution_messages",
                 route_key: "qualtrics_distribution_messages",
                 singular_route_key: "qualtrics_distribution_message")
end