Class: Xberg::Translation

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTranslation

Returns a new instance of Translation.

Parameters:

  • target_lang: (String)
  • source_lang: (String)
  • content: (String)
  • formatted_content: (String)


2621
# File 'sig/types.rbs', line 2621

def initialize: (target_lang: String, ?source_lang: String, content: String, ?formatted_content: String) -> void

Instance Attribute Details

#contentString (readonly)

Returns the value of attribute content.

Returns:

  • (String)


2618
2619
2620
# File 'sig/types.rbs', line 2618

def content
  @content
end

#formatted_contentString? (readonly)

Returns the value of attribute formatted_content.

Returns:

  • (String, nil)


2619
2620
2621
# File 'sig/types.rbs', line 2619

def formatted_content
  @formatted_content
end

#source_langString? (readonly)

Returns the value of attribute source_lang.

Returns:

  • (String, nil)


2617
2618
2619
# File 'sig/types.rbs', line 2617

def source_lang
  @source_lang
end

#target_langString (readonly)

Returns the value of attribute target_lang.

Returns:

  • (String)


2616
2617
2618
# File 'sig/types.rbs', line 2616

def target_lang
  @target_lang
end