Sha256: 695958a90f94bed90a80ede77e670ca9ae10569d8fc8f20cefcc1de9fbbfd540

Contents?: true

Size: 488 Bytes

Versions: 33

Compression:

Stored size: 488 Bytes

Contents

module SurveyGizmoSpec
  class ResourceTest
    include SurveyGizmo::Resource

    attribute :id, Integer
    attribute :title, String
    attribute :test_id, Integer

    # routes
    @route = {
      get: '/test/:id',
      create: '/test/:test_id/resource',
      update: '/test/:test_id/resource/:id',
      delete: '/test/:test_id/resource/:id'
    }
  end

  class GenericResource
    include SurveyGizmo::Resource

    attribute :id, Integer
    attribute :title, String
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
survey-gizmo-ruby-8.0.0 spec/support/test_resource_classes.rb
survey-gizmo-ruby-7.1.1 spec/support/test_resource_classes.rb
survey-gizmo-ruby-7.1.0 spec/support/test_resource_classes.rb
survey-gizmo-ruby-7.0.0 spec/support/test_resource_classes.rb
survey-gizmo-ruby-6.7.0 spec/support/test_resource_classes.rb
survey-gizmo-ruby-6.6.0 spec/support/test_resource_classes.rb
survey-gizmo-ruby-6.5.1 spec/support/test_resource_classes.rb
survey-gizmo-ruby-6.5.0 spec/support/test_resource_classes.rb
survey-gizmo-ruby-6.4.1 spec/support/test_resource_classes.rb
survey-gizmo-ruby-6.4.0 spec/support/test_resource_classes.rb
survey-gizmo-ruby-6.3.2 spec/support/test_resource_classes.rb
survey-gizmo-ruby-6.3.1 spec/support/test_resource_classes.rb
survey-gizmo-ruby-6.3.0 spec/support/test_resource_classes.rb
survey-gizmo-ruby-6.2.13 spec/support/test_resource_classes.rb
survey-gizmo-ruby-6.2.12 spec/support/test_resource_classes.rb
survey-gizmo-ruby-6.2.11 spec/support/test_resource_classes.rb
survey-gizmo-ruby-6.2.10 spec/support/test_resource_classes.rb
survey-gizmo-ruby-6.2.9 spec/support/test_resource_classes.rb
survey-gizmo-ruby-6.2.6 spec/support/test_resource_classes.rb
survey-gizmo-ruby-6.2.5 spec/support/test_resource_classes.rb