Class: GoogleTranslateScraper::Models::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/google_translate_scraper/models/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeResponse

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

#errorsObject

Returns the value of attribute errors.



6
7
8
# File 'lib/google_translate_scraper/models/response.rb', line 6

def errors
  @errors
end

#translationsObject

Returns the value of attribute translations.



6
7
8
# File 'lib/google_translate_scraper/models/response.rb', line 6

def translations
  @translations
end