Class: DeepL::Resources::CustomInstruction

Inherits:
Object
  • Object
show all
Defined in:
lib/deepl/resources/style_rule.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#labelObject (readonly)

Returns the value of attribute label.



32
33
34
# File 'lib/deepl/resources/style_rule.rb', line 32

def label
  @label
end

#promptObject (readonly)

Returns the value of attribute prompt.



32
33
34
# File 'lib/deepl/resources/style_rule.rb', line 32

def prompt
  @prompt
end

#source_languageObject (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