Class: OrchestraAI::Instrument
- Inherits:
-
Object
- Object
- OrchestraAI::Instrument
- Defined in:
- lib/orchestra_ai/instrument.rb
Class Attribute Summary collapse
-
.arguments ⇒ Object
Returns the value of attribute arguments.
Class Method Summary collapse
Instance Method Summary collapse
Class Attribute Details
.arguments ⇒ Object
Returns the value of attribute arguments.
6 7 8 |
# File 'lib/orchestra_ai/instrument.rb', line 6 def arguments @arguments end |
Class Method Details
.argument(name, type) ⇒ Object
8 9 10 11 |
# File 'lib/orchestra_ai/instrument.rb', line 8 def argument(name, type) @arguments ||= [] @arguments << {name:, type:} end |
Instance Method Details
#key ⇒ Object
18 19 20 |
# File 'lib/orchestra_ai/instrument.rb', line 18 def key self.class.name end |
#perform(**args) ⇒ Object
14 15 16 |
# File 'lib/orchestra_ai/instrument.rb', line 14 def perform(**args) raise NotImplementedError, "You must implement the perform method" end |