Class: EtFakeCcd::Command::StartMultipleCommand

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Attributes, ActiveModel::Model
Defined in:
lib/et_fake_ccd/command/start_multiple_command.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#case_ref_number_countInteger

Returns The number of case references to generate.

Returns:

  • (Integer)

    The number of case references to generate



10
# File 'lib/et_fake_ccd/command/start_multiple_command.rb', line 10

attribute :case_ref_number_count, :integer

#case_type_idString

Returns The ccd case type id (e.g. Manchester, Glasgow).

Returns:

  • (String)

    The ccd case type id (e.g. Manchester, Glasgow)



14
# File 'lib/et_fake_ccd/command/start_multiple_command.rb', line 14

attribute :case_type_id

Class Method Details

.from_json(json) ⇒ Object



16
17
18
19
20
# File 'lib/et_fake_ccd/command/start_multiple_command.rb', line 16

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