Class: Eco::API::UseCases::Default::People::Treat::SupersHierarchy

Inherits:
Common::Loaders::UseCase show all
Defined in:
lib/eco/api/usecases/default/people/treat/supers_hierarchy_case.rb,
lib/eco/api/usecases/default/people/treat/cli/supers_hierachy_cli.rb

Defined Under Namespace

Classes: Cli

Constant Summary collapse

OUT_FOLDER =
"sftp".freeze
OUT_TIME_FORMAT =
'%Y%m%dT%H%M%S'.freeze
OUT_FILENAME =
"supers_hierarchy".freeze

Instance Attribute Summary collapse

Attributes included from Language::AuxiliarLogger

#logger

Instance Method Summary collapse

Methods inherited from Common::Loaders::UseCase

cli, cli!, #cli_apply!, #initialize, type, #type

Methods inherited from Common::Loaders::CaseBase

#name, name_only_once!

Methods inherited from Common::Loaders::Base

<=>, created_at, #initialize, set_created_at!

Methods included from Common::ClassHelpers

#class_resolver, #descendants, #descendants?, #inheritable_attrs, #inheritable_class_vars, #inherited, #instance_variable_name, #new_class, #resolve_class, #to_constant

Methods included from Language::AuxiliarLogger

#log

Constructor Details

This class inherits a constructor from Eco::API::Common::Loaders::UseCase

Instance Attribute Details

#peopleObject (readonly)

Returns the value of attribute people.



11
12
13
# File 'lib/eco/api/usecases/default/people/treat/supers_hierarchy_case.rb', line 11

def people
  @people
end

Instance Method Details

#main(people, _session, options, _usecase) ⇒ Object



13
14
15
16
17
18
# File 'lib/eco/api/usecases/default/people/treat/supers_hierarchy_case.rb', line 13

def main(people, _session, options, _usecase)
  options[:end_get] = false
  @people = people

  save!(hierarchy, file: output_filename)
end