Class: TranslationDiff::Capabilities
- Inherits:
-
Data
- Object
- Data
- TranslationDiff::Capabilities
- Defined in:
- lib/translation_diff/capabilities.rb
Overview
Declared, not discovered -- duck-typing left notranslate silently broken on two providers.
Instance Attribute Summary collapse
-
#detects_language ⇒ Object
readonly
Returns the value of attribute detects_language.
-
#html ⇒ Object
readonly
Returns the value of attribute html.
-
#max_batch_size ⇒ Object
readonly
Returns the value of attribute max_batch_size.
-
#max_request_size ⇒ Object
readonly
Returns the value of attribute max_request_size.
-
#max_text_size ⇒ Object
readonly
Returns the value of attribute max_text_size.
-
#notranslate ⇒ Object
readonly
Returns the value of attribute notranslate.
-
#reports_billing ⇒ Object
readonly
Returns the value of attribute reports_billing.
Instance Method Summary collapse
Instance Attribute Details
#detects_language ⇒ Object (readonly)
Returns the value of attribute detects_language
2 3 4 |
# File 'lib/translation_diff/capabilities.rb', line 2 def detects_language @detects_language end |
#html ⇒ Object (readonly)
Returns the value of attribute html
2 3 4 |
# File 'lib/translation_diff/capabilities.rb', line 2 def html @html end |
#max_batch_size ⇒ Object (readonly)
Returns the value of attribute max_batch_size
2 3 4 |
# File 'lib/translation_diff/capabilities.rb', line 2 def max_batch_size @max_batch_size end |
#max_request_size ⇒ Object (readonly)
Returns the value of attribute max_request_size
2 3 4 |
# File 'lib/translation_diff/capabilities.rb', line 2 def max_request_size @max_request_size end |
#max_text_size ⇒ Object (readonly)
Returns the value of attribute max_text_size
2 3 4 |
# File 'lib/translation_diff/capabilities.rb', line 2 def max_text_size @max_text_size end |
#notranslate ⇒ Object (readonly)
Returns the value of attribute notranslate
2 3 4 |
# File 'lib/translation_diff/capabilities.rb', line 2 def notranslate @notranslate end |
#reports_billing ⇒ Object (readonly)
Returns the value of attribute reports_billing
2 3 4 |
# File 'lib/translation_diff/capabilities.rb', line 2 def reports_billing @reports_billing end |
Instance Method Details
#detects_language? ⇒ Boolean
7 |
# File 'lib/translation_diff/capabilities.rb', line 7 def detects_language? = detects_language |
#html? ⇒ Boolean
5 |
# File 'lib/translation_diff/capabilities.rb', line 5 def html? = html != :none |
#notranslate? ⇒ Boolean
6 |
# File 'lib/translation_diff/capabilities.rb', line 6 def notranslate? = notranslate |
#reports_billing? ⇒ Boolean
8 |
# File 'lib/translation_diff/capabilities.rb', line 8 def reports_billing? = reports_billing |