Sha256: 18cceb1a7b86f41ff538c493f4f1b9a6776e12ded7648e31c1538a326ad0e15e

Contents?: true

Size: 417 Bytes

Versions: 11

Compression:

Stored size: 417 Bytes

Contents

# frozen_string_literal: true

require 'evertils/common/query/simple'

module Evertils
  module Action
    class Create < Action::Base
      def initialize(args)
        @args = args
        query = Evertils::Common::Query::Simple.new

        query.create_note_from_hash(allowed_args)
      end

      private

      def allowed_args
        @args.to_h.reject { |key, _| key == :action }
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
evertils-2.3.4 lib/evertils/actions/create.rb
evertils-2.3.3 lib/evertils/actions/create.rb
evertils-2.3.2 lib/evertils/actions/create.rb
evertils-2.3.1 lib/evertils/actions/create.rb
evertils-2.3.0 lib/evertils/actions/create.rb
evertils-2.2.4 lib/evertils/actions/create.rb
evertils-2.2.3 lib/evertils/actions/create.rb
evertils-2.2.2 lib/evertils/actions/create.rb
evertils-2.2.1 lib/evertils/actions/create.rb
evertils-2.2.0 lib/evertils/actions/create.rb
evertils-2.1.0 lib/evertils/actions/create.rb