Class: Textus::Action::Uid

Inherits:
Base
  • Object
show all
Defined in:
lib/textus/action/uid.rb

Class Method Summary collapse

Methods inherited from Base

inherited, proposal_from

Methods included from Contract::DSL

#arg, #cli, #cli_stdin, #contract, #contract?, #summary, #surfaces, #verb, #view

Class Method Details

.call(container:, call:, key:) ⇒ Object



13
14
15
16
# File 'lib/textus/action/uid.rb', line 13

def self.call(container:, call:, key:)
  envelope = Value::Result.unwrap(Textus::Action::Get.call(container: container, call: call, key: key))
  Success(envelope.uid)
end