Sha256: 9d69720ac80e1a2ad8f0b8f79ee902b79ea98ddc07c6602c375f0bc49c3e3c03
Contents?: true
Size: 946 Bytes
Versions: 9
Compression:
Stored size: 946 Bytes
Contents
module SurveyGizmoSpec class ResourceTest include SurveyGizmo::Resource attribute :id, Integer attribute :title, String attribute :test_id, Integer # routes route '/test/:id', :via => :get route '/test/:test_id/resource', :via => :create route '/test/:test_id/resource/:id', :via => [:update, :delete] def to_param_options {:id => self.id, :test_id => self.test_id} end end class CollectionTest include SurveyGizmo::Resource attribute :id, Integer attribute :title, String # routes route '/test/:id', :via => :get route '/test/collection', :via => :create route '/test/collection/:id', :via => [:update, :delete] def to_param_options {:id => self.id, :test_id => self.test_id} end end class GenericResource include SurveyGizmo::Resource attribute :id, Integer attribute :title, String end end
Version data entries
9 entries across 9 versions & 1 rubygems