Sha256: 18c25066b289ad6fb422cbeca6c9df3bc1977aead1180ac99c70ecb6f413b3d2

Contents?: true

Size: 692 Bytes

Versions: 1

Compression:

Stored size: 692 Bytes

Contents

module NetSuite
  module Actions
    class AbstractAction
      def request(credentials={})
        NetSuite::Configuration.connection(request_options, credentials, soap_header_extra_info).call(action_name, message: request_body)
      end

      protected

      def action_name
        raise NotImplementedError, 'Not implemented on abstract class'
      end

      def initialize
        raise NotImplementedError, 'Not implemented on abstract class'
      end

      def request_body
        raise NotImplementedError, 'Not implemented on abstract class'
      end

      def request_options
        {}
      end

      def soap_header_extra_info
        {}
      end
    end
  end
end
  

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
netsuite-0.9.3 lib/netsuite/actions/abstract_action.rb