Class: QRAPI::Group

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


17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/qrapi/models/group.rb', line 17

def self.model_name
  OpenStruct.new(name: "QRAPI::MailingList",
                 klass: self,
                 singular: "qualtrics_group",
                 plural: "qualtrics_groups",
                 element: "group",
                 human: "group",
                 collection: "qrapi/groups",
                 param_key: "qualtrics_groups",
                 i18n_key: "qrapi/groups",
                 route_key: "qualtrics_groups",
                 singular_route_key: "qualtrics_group")
end