Class: EtFakeCcd::Command::StartMultipleCommand
- Inherits:
-
Object
- Object
- EtFakeCcd::Command::StartMultipleCommand
- Includes:
- ActiveModel::Attributes, ActiveModel::Model
- Defined in:
- lib/et_fake_ccd/command/start_multiple_command.rb
Instance Attribute Summary collapse
-
#case_ref_number_count ⇒ Integer
The number of case references to generate.
-
#case_type_id ⇒ String
The ccd case type id (e.g. Manchester, Glasgow).
Class Method Summary collapse
Instance Attribute Details
#case_ref_number_count ⇒ Integer
Returns 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_id ⇒ String
Returns 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 |