Class: GoogleTranslateScraper::Models::Response
- Inherits:
-
Object
- Object
- GoogleTranslateScraper::Models::Response
- Defined in:
- lib/google_translate_scraper/models/response.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#translations ⇒ Object
Returns the value of attribute translations.
Instance Method Summary collapse
-
#initialize ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize ⇒ Response
Returns a new instance of Response.
8 9 10 11 |
# File 'lib/google_translate_scraper/models/response.rb', line 8 def initialize @errors = [] @translations = [] end |
Instance Attribute Details
#errors ⇒ Object
Returns the value of attribute errors.
6 7 8 |
# File 'lib/google_translate_scraper/models/response.rb', line 6 def errors @errors end |
#translations ⇒ Object
Returns the value of attribute translations.
6 7 8 |
# File 'lib/google_translate_scraper/models/response.rb', line 6 def translations @translations end |