Class: AttributesMapper::Configuration

Inherits:
Object
  • Object
show all
Includes:
ActiveSupport::Configurable
Defined in:
lib/attributes-mapper/configuration.rb

Instance Method Summary collapse

Instance Method Details

#apply_input_data_transform?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/attributes-mapper/configuration.rb', line 19

def apply_input_data_transform?
  apply_input_data_transform_proc.is_a?(Proc)
end

#ordered_path_context_namesObject



11
12
13
# File 'lib/attributes-mapper/configuration.rb', line 11

def ordered_path_context_names
  required_attributes + optional_attributes
end

#source_data_wrapper_class?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/attributes-mapper/configuration.rb', line 15

def source_data_wrapper_class?
  source_data_wrapper_class.present?
end