Class: Translator::TranslationRequest
- Inherits:
-
Object
- Object
- Translator::TranslationRequest
- Defined in:
- lib/nexmo_developer/app/services/translator/translation_request.rb
Instance Attribute Summary collapse
-
#file_path ⇒ Object
readonly
Returns the value of attribute file_path.
-
#file_uri ⇒ Object
readonly
Returns the value of attribute file_uri.
-
#frequency ⇒ Object
readonly
Returns the value of attribute frequency.
-
#locale ⇒ Object
readonly
Returns the value of attribute locale.
Instance Method Summary collapse
-
#initialize(locale:, frequency:, file_uri:, file_path:) ⇒ TranslationRequest
constructor
A new instance of TranslationRequest.
Constructor Details
#initialize(locale:, frequency:, file_uri:, file_path:) ⇒ TranslationRequest
Returns a new instance of TranslationRequest.
5 6 7 8 9 10 |
# File 'lib/nexmo_developer/app/services/translator/translation_request.rb', line 5 def initialize(locale:, frequency:, file_uri:, file_path:) @locale = locale @frequency = frequency @file_uri = file_uri @file_path = file_path end |
Instance Attribute Details
#file_path ⇒ Object (readonly)
Returns the value of attribute file_path.
3 4 5 |
# File 'lib/nexmo_developer/app/services/translator/translation_request.rb', line 3 def file_path @file_path end |
#file_uri ⇒ Object (readonly)
Returns the value of attribute file_uri.
3 4 5 |
# File 'lib/nexmo_developer/app/services/translator/translation_request.rb', line 3 def file_uri @file_uri end |
#frequency ⇒ Object (readonly)
Returns the value of attribute frequency.
3 4 5 |
# File 'lib/nexmo_developer/app/services/translator/translation_request.rb', line 3 def frequency @frequency end |
#locale ⇒ Object (readonly)
Returns the value of attribute locale.
3 4 5 |
# File 'lib/nexmo_developer/app/services/translator/translation_request.rb', line 3 def locale @locale end |