Class: BulkDataTestKit::BulkDataTestKitProperties
- Inherits:
-
Object
- Object
- BulkDataTestKit::BulkDataTestKitProperties
- Defined in:
- lib/bulk_data_test_kit/bulk_data_test_kit_properties.rb
Constant Summary collapse
- ATTRIBUTES =
%i[ resource_type bulk_export_url ].freeze
Instance Method Summary collapse
-
#initialize(**properties) ⇒ BulkDataTestKitProperties
constructor
A new instance of BulkDataTestKitProperties.
Constructor Details
#initialize(**properties) ⇒ BulkDataTestKitProperties
Returns a new instance of BulkDataTestKitProperties.
12 13 14 15 16 17 18 |
# File 'lib/bulk_data_test_kit/bulk_data_test_kit_properties.rb', line 12 def initialize(**properties) properties.each do |key, value| raise StandardError, "Unknown search test property: #{key}" unless ATTRIBUTES.include?(key) instance_variable_set(:"@#{key}", value) end end |