Class: TranslationDiff::Capabilities

Inherits:
Data
  • Object
show all
Defined in:
lib/translation_diff/capabilities.rb

Overview

Declared, not discovered -- duck-typing left notranslate silently broken on two providers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#detects_language ⇒ Object (readonly)

Returns the value of attribute detects_language

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Boolean)


7
# File 'lib/translation_diff/capabilities.rb', line 7

def detects_language? = detects_language

#html? ⇒ Boolean

Returns:

  • (Boolean)


5
# File 'lib/translation_diff/capabilities.rb', line 5

def html? = html != :none

#notranslate? ⇒ Boolean

Returns:

  • (Boolean)


6
# File 'lib/translation_diff/capabilities.rb', line 6

def notranslate? = notranslate

#reports_billing? ⇒ Boolean

Returns:

  • (Boolean)


8
# File 'lib/translation_diff/capabilities.rb', line 8

def reports_billing? = reports_billing