Class: QRAPI::Response

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


26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/qrapi/models/response.rb', line 26

def self.model_name
  OpenStruct.new(name: "QRAPI::Response",
                 klass: self,
                 singular: "qualtrics_response",
                 plural: "qualtrics_responses",
                 element: "responses",
                 human: "response",
                 collection: "qrapi/responses",
                 param_key: "qualtrics_responses",
                 i18n_key: "qrapi/responses",
                 route_key: "qualtrics_responses",
                 singular_route_key: "qualtrics_response")
end