Sha256: 697d8f4d40e7066ec374683addf88f2c794fc97a3eb80ef47b95d2b476b7b36c

Contents?: true

Size: 861 Bytes

Versions: 12

Compression:

Stored size: 861 Bytes

Contents

require 'legion/transport/exchanges/lex'

module Legion
  module Transport
    module Messages
      class LexRegister < Legion::Transport::Message
        def exchange
          Legion::Transport::Exchanges::Lex
        end

        def routing_key
          'lex.register.save'
        end

        def validate
          unless @options[:runner_namespace].is_a? String
            # raise "runner_namespace is a #{@options[:runner_namespace].class}"
          end
          unless @options[:extension_namespace].is_a? String
            # raise "extension_namespace is a #{@options[:extension_namespace].class}"
          end
          unless @options[:function].is_a?(String) || @options[:function].is_a?(Symbol)
            # raise "function is a #{@options[:function].class}"
          end

          @valid = true
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
legion-transport-1.1.9 lib/legion/transport/messages/lex_register.rb
legion-transport-1.1.8 lib/legion/transport/messages/lex_register.rb
legion-transport-1.1.6 lib/legion/transport/messages/lex_register.rb
legion-transport-1.1.5 lib/legion/transport/messages/lex_register.rb
legion-transport-java-1.1.4 lib/legion/transport/messages/lex_register.rb
legion-transport-1.1.4 lib/legion/transport/messages/lex_register.rb
legion-transport-java-1.1.3 lib/legion/transport/messages/lex_register.rb
legion-transport-1.1.3 lib/legion/transport/messages/lex_register.rb
legion-transport-1.1.2 lib/legion/transport/messages/lex_register.rb
legion-transport-1.1.1 lib/legion/transport/messages/lex_register.rb
legion-transport-1.1.0 lib/legion/transport/messages/lex_register.rb
legion-transport-1.0.0 lib/legion/transport/messages/lex_register.rb