Class: DeepL::Resources::StyleRule

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

Instance Attribute Summary collapse

Attributes inherited from Base

#request, #response

Instance Method Summary collapse

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_rulesObject (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_timeObject (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_instructionsObject (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

#languageObject (readonly)

Returns the value of attribute language.



42
43
44
# File 'lib/deepl/resources/style_rule.rb', line 42

def language
  @language
end

#nameObject (readonly)

Returns the value of attribute name.



42
43
44
# File 'lib/deepl/resources/style_rule.rb', line 42

def name
  @name
end

#style_idObject (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_timeObject (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

#versionObject (readonly)

Returns the value of attribute version.



42
43
44
# File 'lib/deepl/resources/style_rule.rb', line 42

def version
  @version
end