Class: Eco::API::UseCases::OozeSamples::OozeUpdateCase

Inherits:
Common::Loaders::UseCase show all
Defined in:
lib/eco/api/usecases/ooze_samples/ooze_update_case.rb

Constant Summary collapse

SAVE_PATCH =
"ooze_patch_update.json"

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Common::Loaders::UseCase

#initialize, type, #type

Methods inherited from Common::BaseLoader

<=>, created_at, #initialize, #name, name_only_once!, 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

Constructor Details

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

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/eco/api/usecases/ooze_samples/ooze_update_case.rb', line 5

def options
  @options
end

#sessionObject (readonly)

Returns the value of attribute session.



5
6
7
# File 'lib/eco/api/usecases/ooze_samples/ooze_update_case.rb', line 5

def session
  @session
end

#usecaseObject (readonly)

Returns the value of attribute usecase.



5
6
7
# File 'lib/eco/api/usecases/ooze_samples/ooze_update_case.rb', line 5

def usecase
  @usecase
end

Instance Method Details

#main(session, options, usecase) ⇒ Object



9
10
11
12
13
# File 'lib/eco/api/usecases/ooze_samples/ooze_update_case.rb', line 9

def main(session, options, usecase)
  @session = session; @options = options; @usecase = usecase
  yield
  end_script!
end