Class: DeepL::Resources::StyleRule
- Defined in:
- lib/deepl/resources/style_rule.rb
Instance Attribute Summary collapse
-
#configured_rules ⇒ Object
readonly
Returns the value of attribute configured_rules.
-
#creation_time ⇒ Object
readonly
Returns the value of attribute creation_time.
-
#custom_instructions ⇒ Object
readonly
Returns the value of attribute custom_instructions.
-
#language ⇒ Object
readonly
Returns the value of attribute language.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#style_id ⇒ Object
readonly
Returns the value of attribute style_id.
-
#updated_time ⇒ Object
readonly
Returns the value of attribute updated_time.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(style_rule, *args) ⇒ StyleRule
constructor
A new instance of StyleRule.
Constructor Details
#initialize(style_rule, *args) ⇒ StyleRule
Returns a new instance of StyleRule.
45 46 47 48 49 50 |
# File 'lib/deepl/resources/style_rule.rb', line 45 def initialize(style_rule, *args) super(*args) extract_basic_fields(style_rule) extract_configured_rules(style_rule) extract_custom_instructions(style_rule) end |
Instance Attribute Details
#configured_rules ⇒ Object (readonly)
Returns the value of attribute configured_rules.
42 43 44 |
# File 'lib/deepl/resources/style_rule.rb', line 42 def configured_rules @configured_rules end |
#creation_time ⇒ Object (readonly)
Returns the value of attribute creation_time.
42 43 44 |
# File 'lib/deepl/resources/style_rule.rb', line 42 def creation_time @creation_time end |
#custom_instructions ⇒ Object (readonly)
Returns the value of attribute custom_instructions.
42 43 44 |
# File 'lib/deepl/resources/style_rule.rb', line 42 def custom_instructions @custom_instructions end |
#language ⇒ Object (readonly)
Returns the value of attribute language.
42 43 44 |
# File 'lib/deepl/resources/style_rule.rb', line 42 def language @language end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
42 43 44 |
# File 'lib/deepl/resources/style_rule.rb', line 42 def name @name end |
#style_id ⇒ Object (readonly)
Returns the value of attribute style_id.
42 43 44 |
# File 'lib/deepl/resources/style_rule.rb', line 42 def style_id @style_id end |
#updated_time ⇒ Object (readonly)
Returns the value of attribute updated_time.
42 43 44 |
# File 'lib/deepl/resources/style_rule.rb', line 42 def updated_time @updated_time end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
42 43 44 |
# File 'lib/deepl/resources/style_rule.rb', line 42 def version @version end |