Class: Eco::API::UseCases::Default::People::Treat::SupersHierarchy
- Inherits:
-
Common::Loaders::UseCase
- Object
- Common::Loaders::Base
- Common::Loaders::CaseBase
- Common::Loaders::UseCase
- Eco::API::UseCases::Default::People::Treat::SupersHierarchy
- 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
-
#people ⇒ Object
readonly
Returns the value of attribute people.
Attributes included from Language::AuxiliarLogger
Instance Method Summary collapse
Methods inherited from Common::Loaders::UseCase
cli, cli!, #cli_apply!, #initialize, type, #type
Methods inherited from Common::Loaders::CaseBase
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
Constructor Details
This class inherits a constructor from Eco::API::Common::Loaders::UseCase
Instance Attribute Details
#people ⇒ Object (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, , _usecase) [:end_get] = false @people = people save!(hierarchy, file: output_filename) end |