Class: Textus::Read::Uid
- Inherits:
-
Object
- Object
- Textus::Read::Uid
- Defined in:
- lib/textus/read/uid.rb
Instance Method Summary collapse
- #call(key) ⇒ Object
-
#initialize(container:, call:) ⇒ Uid
constructor
A new instance of Uid.
Constructor Details
#initialize(container:, call:) ⇒ Uid
Returns a new instance of Uid.
4 5 6 7 |
# File 'lib/textus/read/uid.rb', line 4 def initialize(container:, call:) @container = container @call = call end |
Instance Method Details
#call(key) ⇒ Object
9 10 11 |
# File 'lib/textus/read/uid.rb', line 9 def call(key) get.get(key).uid end |