Class: TranslationDiff::Translation::Request

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(texts:, from:, to:, options: {}) ⇒ Request

Returns a new instance of Request.



4
5
6
# File 'lib/translation_diff/translation/request.rb', line 4

def initialize(texts:, from:, to:, options: {})
  super
end

Instance Attribute Details

#from ⇒ Object (readonly)

Returns the value of attribute from

Returns:

  • (Object) —

    the current value of from



3
4
5
# File 'lib/translation_diff/translation/request.rb', line 3

def from
  @from
end

#options ⇒ Object (readonly)

Returns the value of attribute options

Returns:

  • (Object) —

    the current value of options



3
4
5
# File 'lib/translation_diff/translation/request.rb', line 3

def options
  @options
end

#texts ⇒ Object (readonly)

Returns the value of attribute texts

Returns:

  • (Object) —

    the current value of texts



3
4
5
# File 'lib/translation_diff/translation/request.rb', line 3

def texts
  @texts
end

#to ⇒ Object (readonly)

Returns the value of attribute to

Returns:

  • (Object) —

    the current value of to



3
4
5
# File 'lib/translation_diff/translation/request.rb', line 3

def to
  @to
end