Module: Eco::API::Common::Loaders::UseCase::TargetModel::ClassMethods

Defined in:
lib/eco/api/common/loaders/use_case/target_model.rb

Instance Method Summary collapse

Instance Method Details

#target_model(value = nil) ⇒ String

Note:

it inherently defaults to :people (out of backwards compatibility)

Returns the target_model.

Returns:

  • (String)

    the target_model



14
15
16
17
18
# File 'lib/eco/api/common/loaders/use_case/target_model.rb', line 14

def target_model(value = nil)
  return @target_model = value if value

  @target_model                if @target_model
end