Class: TranslationDiff::Translation::Request
- Inherits:
-
Data
- Object
- Data
- TranslationDiff::Translation::Request
- Defined in:
- lib/translation_diff/translation/request.rb
Instance Attribute Summary collapse
-
#from ⇒ Object
readonly
Returns the value of attribute from.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#texts ⇒ Object
readonly
Returns the value of attribute texts.
-
#to ⇒ Object
readonly
Returns the value of attribute to.
Instance Method Summary collapse
-
#initialize(texts:, from:, to:, options: {}) ⇒ Request
constructor
A new instance of Request.
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
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
3 4 5 |
# File 'lib/translation_diff/translation/request.rb', line 3 def @options end |
#texts ⇒ Object (readonly)
Returns the value of attribute 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
3 4 5 |
# File 'lib/translation_diff/translation/request.rb', line 3 def to @to end |