Class: QRAPI::User

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


30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/qrapi/models/user.rb', line 30

def self.model_name
  OpenStruct.new(name: "QRAPI::MailingList",
                 klass: self,
                 singular: "qualtrics_user",
                 plural: "qualtrics_users",
                 element: "user",
                 human: "user",
                 collection: "qrapi/users",
                 param_key: "qualtrics_users",
                 i18n_key: "qrapi/users",
                 route_key: "qualtrics_users",
                 singular_route_key: "qualtrics_user")
end