Sha256: f7df6e2f6d7d01ee81eab58b1454a59c4eacf850df1f5f45cf9fc5a7fad56c14

Contents?: true

Size: 522 Bytes

Versions: 4

Compression:

Stored size: 522 Bytes

Contents

module TextService
  module Models
    class Text
    end
  end

  module Serializers
    class Text
    end
  end

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

        def execute
          text.reverse
        end
      end
    end
  end
end


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

      def execute
        a + b
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
restpack_service-0.0.68 spec/support/fixtures.rb
restpack_service-0.0.67 spec/support/fixtures.rb
restpack_service-0.0.66 spec/support/fixtures.rb
restpack_service-0.0.65 spec/support/fixtures.rb