Class: DeepL::Resources::CustomInstruction
- Inherits:
-
Object
- Object
- DeepL::Resources::CustomInstruction
- Defined in:
- lib/deepl/resources/style_rule.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#prompt ⇒ Object
readonly
Returns the value of attribute prompt.
-
#source_language ⇒ Object
readonly
Returns the value of attribute source_language.
Instance Method Summary collapse
-
#initialize(custom_instruction_data) ⇒ CustomInstruction
constructor
A new instance of CustomInstruction.
Constructor Details
#initialize(custom_instruction_data) ⇒ CustomInstruction
Returns a new instance of CustomInstruction.
34 35 36 37 38 |
# File 'lib/deepl/resources/style_rule.rb', line 34 def initialize(custom_instruction_data) @label = custom_instruction_data['label'] @prompt = custom_instruction_data['prompt'] @source_language = custom_instruction_data['source_language'] end |
Instance Attribute Details
#label ⇒ Object (readonly)
Returns the value of attribute label.
32 33 34 |
# File 'lib/deepl/resources/style_rule.rb', line 32 def label @label end |
#prompt ⇒ Object (readonly)
Returns the value of attribute prompt.
32 33 34 |
# File 'lib/deepl/resources/style_rule.rb', line 32 def prompt @prompt end |
#source_language ⇒ Object (readonly)
Returns the value of attribute source_language.
32 33 34 |
# File 'lib/deepl/resources/style_rule.rb', line 32 def source_language @source_language end |