Sha256: c69353768839c15a514917672bd1d8cb9266b8e7785921e391309ff6b5e8afc5

Contents?: true

Size: 702 Bytes

Versions: 3

Compression:

Stored size: 702 Bytes

Contents

module SurveyGizmo; module API
  # @see SurveyGizmo::Resource::ClassMethods
  class Response
    include SurveyGizmo::Resource
    
    # @macro [attach] virtus_attribute
    #   @return [$2] the attribute +$1+ as a $2
    attribute :id,            Integer
    attribute :data,          String
    attribute :status,        String
    attribute :survey_id,     Integer
        
    # routing
    route '/survey/:survey_id/surveyresponse',     :via => :create
    route '/survey/:survey_id/surveyresponse/:id', :via => [:get, :update, :delete]
    
    # @see SurveyGizmo::Resource#to_param_options 
    def to_param_options
      {:id => self.id, :survey_id => self.survey_id}
    end
  
  end
end; end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
survey-gizmo-ruby-0.7.1 lib/survey_gizmo/api/response.rb
survey-gizmo-ruby-0.7.0 lib/survey_gizmo/api/response.rb
survey-gizmo-ruby-0.6.0 lib/survey_gizmo/api/response.rb