Sha256: 9c09ea0df7ff5df457bb8bbcf4a9cdf4896ec7b4db6057127c4ff269b56d2bc8

Contents?: true

Size: 173 Bytes

Versions: 8

Compression:

Stored size: 173 Bytes

Contents

module ActiveRecordSurveyApi
	class SurveySerializer < BaseSerializer
		attribute :name

		has_many :questions

		def self_link
			url_helpers.survey_path(id)
		end
	end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
active_record_survey_api-0.0.19 lib/active_record_survey_api/serializers/survey_serializer.rb
active_record_survey_api-0.0.18 lib/active_record_survey_api/serializers/survey_serializer.rb
active_record_survey_api-0.0.17 lib/active_record_survey_api/serializers/survey_serializer.rb
active_record_survey_api-0.0.14 lib/active_record_survey_api/serializers/survey_serializer.rb
active_record_survey_api-0.0.12 lib/active_record_survey_api/serializers/survey_serializer.rb
active_record_survey_api-0.0.11 lib/active_record_survey_api/serializers/survey_serializer.rb
active_record_survey_api-0.0.7 lib/active_record_survey_api/serializers/survey_serializer.rb
active_record_survey_api-0.0.6 lib/active_record_survey_api/serializers/survey_serializer.rb