Sha256: 348ca797fc91d26d245e37f7dd637e796181d00dedbf31063a4b2c9a5680c4db

Contents?: true

Size: 540 Bytes

Versions: 11

Compression:

Stored size: 540 Bytes

Contents

module TextService
  module Models
    class Text
    end
  end

  module Serializers
    class Text
    end
  end

  module Commands
    module Text
      class Reverse < RestPack::Service::Command
        required do
          string :text
        end

        def execute
          text.reverse
        end
      end
    end
  end
end


module Commands
  module Math
    class Add < RestPack::Service::Command
      required do
        integer :a
        integer :b
      end

      def execute
        a + b
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
restpack_service-0.0.77 spec/support/fixtures.rb
restpack_service-0.0.76 spec/support/fixtures.rb
restpack_service-0.0.75 spec/support/fixtures.rb
restpack_service-0.0.74 spec/support/fixtures.rb
restpack_service-0.0.73 spec/support/fixtures.rb
restpack_service-0.0.72 spec/support/fixtures.rb
restpack_service-0.0.71 spec/support/fixtures.rb
restpack_service-0.0.70 spec/support/fixtures.rb
restpack_service-0.0.69 spec/support/fixtures.rb
restpack_service-0.0.64 spec/support/fixtures.rb
restpack_service-0.0.63 spec/support/fixtures.rb