Sha256: fc315e965f2ad6bb4285303aec84809a2079ca4e9cfba42ddca48c18f965b3e6

Contents?: true

Size: 759 Bytes

Versions: 18

Compression:

Stored size: 759 Bytes

Contents

require 'active_model'
module EtFakeCcd
  module Command
    class StartMultipleCommand
      include ActiveModel::Model
      include ActiveModel::Attributes

      # @!attribute case_ref_number_count
      #  @return [Integer] The number of case references to generate
      attribute :case_ref_number_count, :integer

      # @!attribute case_type_id
      #  @return [String] The ccd case type id (e.g. Manchester, Glasgow)
      attribute :case_type_id

      def self.from_json(json)
        case_ref_number_count = json.dig('case_details', 'case_data', 'caseRefNumberCount')
        case_type_id = json.dig('case_details', 'case_type_id')
        new case_ref_number_count: case_ref_number_count, case_type_id: case_type_id
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
et_fake_ccd-2.1.0 lib/et_fake_ccd/command/start_multiple_command.rb
et_fake_ccd-2.0.0 lib/et_fake_ccd/command/start_multiple_command.rb
et_fake_ccd-1.1.11 lib/et_fake_ccd/command/start_multiple_command.rb
et_fake_ccd-1.1.10 lib/et_fake_ccd/command/start_multiple_command.rb
et_fake_ccd-1.1.9 lib/et_fake_ccd/command/start_multiple_command.rb
et_fake_ccd-1.1.8 lib/et_fake_ccd/command/start_multiple_command.rb
et_fake_ccd-1.1.6 lib/et_fake_ccd/command/start_multiple_command.rb
et_fake_ccd-1.1.5 lib/et_fake_ccd/command/start_multiple_command.rb
et_fake_ccd-1.1.4 lib/et_fake_ccd/command/start_multiple_command.rb
et_fake_ccd-1.1.3 lib/et_fake_ccd/command/start_multiple_command.rb
et_fake_ccd-1.1.2 lib/et_fake_ccd/command/start_multiple_command.rb
et_fake_ccd-1.1.1 lib/et_fake_ccd/command/start_multiple_command.rb
et_fake_ccd-1.1.0 lib/et_fake_ccd/command/start_multiple_command.rb
et_fake_ccd-1.0.8 lib/et_fake_ccd/command/start_multiple_command.rb
et_fake_ccd-1.0.7 lib/et_fake_ccd/command/start_multiple_command.rb
et_fake_ccd-1.0.6 lib/et_fake_ccd/command/start_multiple_command.rb
et_fake_ccd-1.0.5 lib/et_fake_ccd/command/start_multiple_command.rb
et_fake_ccd-1.0.4 lib/et_fake_ccd/command/start_multiple_command.rb