Sha256: aa20b31d06447b4f459d6fcf6043e1b40670eccebe5fa1d9f8c611dc76e9041d

Contents?: true

Size: 603 Bytes

Versions: 6

Compression:

Stored size: 603 Bytes

Contents

module TextService
  module Models
    class Text
    end
  end

  module Serializers
    class Text
    end
  end

  module Base
    class Command < RestPack::Service::Command
    end
  end

  module Commands
    module Text
      class Reverse < Base::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

6 entries across 6 versions & 1 rubygems

Version Path
restpack_service-0.0.83 spec/support/fixtures.rb
restpack_service-0.0.82 spec/support/fixtures.rb
restpack_service-0.0.81 spec/support/fixtures.rb
restpack_service-0.0.80 spec/support/fixtures.rb
restpack_service-0.0.79 spec/support/fixtures.rb
restpack_service-0.0.78 spec/support/fixtures.rb