Sha256: e6cd39882df1058c86643d13a470b0736f8b0685e2e0fa99a41cf8308e307929
Contents?: true
Size: 1.09 KB
Versions: 1
Compression:
Stored size: 1.09 KB
Contents
module SurveyGizmo; module API # @see SurveyGizmo::Resource::ClassMethods class Response include SurveyGizmo::Resource attribute :id, Integer attribute :survey_id, Integer attribute :contact_id, Integer attribute :data, String attribute :status, String attribute :datesubmitted, DateTime attribute :is_test_data, Boolean attribute :sResponseComment, String attribute :variable, Hash # READ-ONLY attribute :meta, Hash # READ-ONLY attribute :shown, Hash # READ-ONLY attribute :url, Hash # READ-ONLY attribute :answers, Hash # READ-ONLY route '/survey/:survey_id/surveyresponse', via: :create route '/survey/:survey_id/surveyresponse/:id', via: [:get, :update, :delete] def survey @survey ||= SurveyGizmo::API::Survey.first(id: survey_id) end def to_param_options { id: self.id, survey_id: self.survey_id } end end end; end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
survey-gizmo-ruby-4.0.0 | lib/survey_gizmo/api/response.rb |